Home Web Front-end Front-end Q&A Install nodejs and npm on win10

Install nodejs and npm on win10

May 25, 2023 pm 01:14 PM

With the increase in JavaScript programs, Node.js and npm are becoming more and more popular. However, if you are a newbie, how to install them on Windows 10 may seem a bit difficult. The following will provide you with detailed steps to install Node.js and npm so you can get started easily.

Step One: Download Node.js

Visit the official website of Node.js https://nodejs.org/zh-cn/, and click the "Download" button. By default, the Windows x64-bit version will be downloaded on the current page. If your computer is 32-bit, you will need to click on the "Other Platforms" link and select the required version.

You can choose to allow the Node.js installer to change settings on your computer. Then, click the "Next" button to proceed to the next step.

Step 2: Install Node.js

Use the default settings installer to install. However, please note that in Custom Installation you have the option to change the installation location and also select which components to install. With the default selection of components and versions available for all users, these default settings should meet the needs of most users.

Similarly, you can choose to launch the Node.js installer after completing the installation.

Step 3: Verify that Node.js has been installed correctly

Open PowerShell as an administrator, enter the "node -v" command, and then press Enter. This will output the current version of Node.js in the runtime environment. If you see the version number, Node.js has been successfully installed.

Step 4: Install NPM

NPM (Node Package Manager) is the package manager for Node.js, so if you want to use Node.js for development, you need to install it.

NPM is usually installed with Node.js, so you don't need to install NPM separately yourself. However, in some cases you may need to update NPM or use an older version. At this point, you can install NPM globally using the following command.

npm install npm@latest -g

Now that you have installed Node.js and npm correctly, you can start implementing Node.js-based projects on your computer.

The above is the detailed content of Install nodejs and npm on win10. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain the concept of lazy loading. Explain the concept of lazy loading. Mar 13, 2025 pm 07:47 PM

Explain the concept of lazy loading.

What is useEffect? How do you use it to perform side effects? What is useEffect? How do you use it to perform side effects? Mar 19, 2025 pm 03:58 PM

What is useEffect? How do you use it to perform side effects?

How does the React reconciliation algorithm work? How does the React reconciliation algorithm work? Mar 18, 2025 pm 01:58 PM

How does the React reconciliation algorithm work?

How does currying work in JavaScript, and what are its benefits? How does currying work in JavaScript, and what are its benefits? Mar 18, 2025 pm 01:45 PM

How does currying work in JavaScript, and what are its benefits?

Explain the purpose of each lifecycle method and its use case. Explain the purpose of each lifecycle method and its use case. Mar 19, 2025 pm 01:46 PM

Explain the purpose of each lifecycle method and its use case.

What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code? What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code? Mar 18, 2025 pm 01:44 PM

What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code?

What are the advantages and disadvantages of controlled and uncontrolled components? What are the advantages and disadvantages of controlled and uncontrolled components? Mar 19, 2025 pm 04:16 PM

What are the advantages and disadvantages of controlled and uncontrolled components?

What are React's performance optimization techniques (memoization, code splitting, lazy loading)? What are React's performance optimization techniques (memoization, code splitting, lazy loading)? Mar 18, 2025 pm 01:57 PM

What are React's performance optimization techniques (memoization, code splitting, lazy loading)?

See all articles