Skip to main content
Include information from comments.
Source Link
Robotnik
  • 3.8k
  • 4
  • 38
  • 55

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

Here's an example. (Change 5.4.0 to whichever version you want.)

npm install [email protected] -g 

If you switch versions later in nvm, the npm version will change as well, so it's easy to undo this action.

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

Here's an example. (Change 5.4.0 to whichever version you want.)

npm install [email protected] -g 

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

Here's an example. (Change 5.4.0 to whichever version you want.)

npm install [email protected] -g 

If you switch versions later in nvm, the npm version will change as well, so it's easy to undo this action.

Simplify
Source Link
Bennett McElwee
  • 26k
  • 6
  • 56
  • 65

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

ForHere's an example:

npm install [email protected] -g 

Where. (Change x5.x4.x0 represents theto whichever version you want. E.g.)

npm install [email protected] -g 

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

For example:

npm install [email protected] -g 

Where x.x.x represents the version you want. E.g.

npm install [email protected] -g 

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

Here's an example. (Change 5.4.0 to whichever version you want.)

npm install [email protected] -g 
Clarify based on comments
Source Link
Robotnik
  • 3.8k
  • 4
  • 38
  • 55

UseNpm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

npm install [email protected] -g npm install [email protected] -g 

For example:

npm install [email protected] -g 

Where x.x.x represents the version you want. E.g.

npm install [email protected] -g 

Use

npm install [email protected] -g npm install [email protected] -g 

Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.

For example:

npm install [email protected] -g 

Where x.x.x represents the version you want. E.g.

npm install [email protected] -g 
Fixed the weird syntax highlighting (as a result, the diff looks more extensive than it really is - use view "Side-by-side Markdown" to compare), etc.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134
Loading
Source Link
Ocko
  • 2k
  • 1
  • 12
  • 4
Loading