Downloading And Installing Node.js And Npm
Có thể bạn quan tâm
- Getting started
- Configuring
- Downloading and installing Node.js and npm
- Overview
- Checking your version of npm and Node.js
- Using a Node version manager to install Node.js and npm
- macOS or Linux Node version managers
- Windows Node version managers
- Using a Node installer to install Node.js and npm
- macOS or Windows Node installers
- Linux or other operating systems Node installers
- Less-common operating systems
To publish and install packages to and from the public npm registry or a private npm registry, you must install Node.js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.js and npm. We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
Note: to download the latest version of npm, on the command line, run the following command:
npm install -g npmOverview
- Checking your version of npm and Node.js
- Using a Node version manager to install Node.js and npm
- Using a Node installer to install Node.js and npm
Checking your version of npm and Node.js
To see if you already have Node.js and npm installed and check the installed version, run the following commands:
node-vnpm-vUsing a Node version manager to install Node.js and npm
Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions.
macOS or Linux Node version managers
- nvm
- n
Windows Node version managers
- nodist
- nvm-windows
Using a Node installer to install Node.js and npm
If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system.
- Node.js installer
- NodeSource installer
If you use Linux, we recommend that you use a NodeSource installer.
macOS or Windows Node installers
If you're using macOS or Windows, use one of the installers from the Node.js download page. Be sure to install the version labeled LTS. Other versions have not yet been tested with npm.
Linux or other operating systems Node installers
If you're using Linux or another operating system, use one of the following installers:
- NodeSource installer (recommended)
- One of the installers on the Node.js download page
Or see this page to install npm for Linux in the way many Linux developers prefer.
Less-common operating systems
For more information on installing Node.js on a variety of operating systems, see this page.
Edit this page on GitHub4 contributorsTừ khóa » G Npm M
-
Npm
-
G - Npm
-
Http-server - Npm
-
Express - Npm
-
React - Npm
-
Node.js
-
How To Solve Npm Install Error “npm ERR! Code 1” - Stack Overflow
-
Npm Install Command Failing With Message "could Not Find Visual ...
-
Tj/n: Node Version Management - GitHub
-
[BUG] `d` Uses Deprecated Switch `-g` · Issue #4980 - GitHub
-
Presenting V7.0.0 Of The Npm CLI - The GitHub Blog
-
How To Update The Npm Version Bundled With Your Node.js Installation
-
How To Check Node Version - RisingStack Engineering
-
How To Update NPM ? - GeeksforGeeks