Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm vs node version numbers

Tags:

node.js

npm

I just downloaded the latest version of node.js, which at the time of this post is 8.11

Yet my npm version# was still on 5.x, so I ran
npm install -g npm

Now, when I run npm -v, I see 6.1.0

Are the version#'s for Node and npm usually different?

like image 354
bitshift Avatar asked Jun 25 '18 13:06

bitshift


People also ask

What version of npm does node 14 use?

That said, npm@7 is the current version of npm and it too will be supported on 14 as well for as long as 14 is supported. If you don't want to force your coworker to update, npm@6 will continue to receive updates as long as Node. js 14 is supported.

What version of npm does node 16 use?

js 16, include: Experimental implementation of the standard Web Crypto API. npm 7 (v7. 10.0 in Node.

Which version of node has npm 6?

On April 24 the Node. js project released version 10.0. 0 of Node. js and npm Inc released version 6.0 of npm, the JavaScript package manager.

What version is npm?

npm uses the tilde (~) and caret (^) to designate which patch and minor versions to use respectively. So if you see ~1.0. 2 it means to install version 1.0. 2 or the latest patch version such as 1.0.


2 Answers

NPM is Node Package Manager. It is the official package manager for Node. That is why NPM is downloaded with Node, but they are 2 totally different pieces of software and evolve separately.

like image 127
Seblor Avatar answered Oct 16 '22 00:10

Seblor


Are the version#'s for Node and npm usually different?

In short, yes, they aren't the same thing - NPM is a package manager and Node is a runtime and both are developed separately with different release cycles.

like image 45
James Avatar answered Oct 15 '22 22:10

James