So I was just scrolling the feed as usual when I cam across an article where the tittle caught my eye:
After trying to explain in the comments what was the difference between NPM and Node.JS I thought it would be better to just create a post to stop the share of false information and to try and enlighten people.
If we look at the post mentioned in the introduction we can see that it starts of talking about Node.JS and then switches to mention NPM as if they were the same. The post judges Node.JS on the the problems of NPM.
This is a big mistake in itself. Looking at the definition of NodeJS as well as the source code it is clear the Node.JS itself DOES NOT use NPM
This project is bound by a Code of Conduct.
Table of contents
- Release types
- Building Node.js
- Contributing to Node.js
- Current project team members
Looking for help? Check out the instructions for getting support.
- Current: Under active development. Code for the Current release is in the branch for its major version number (for example v15.x). Node.js releases a new major version every 6 months, allowing for breaking changes. This happens in April and October every year. Releases appearing each…
There is even a tutorial for building the source itself which means you still do not need NPM to build and run Node.JS as well as code in it.
v10or higher must be installed to run this program
You can download & install
npm directly from npmjs.com using our custom
curl -qL https://www.npmjs.com/install.sh | sh
Node Version Managers
If you're looking to manage multiple versions of
npm, consider using a "Node Version Manager" such as:
Links & Resources
For NPM to work on any Operating System it will require Node as that is what the packet manager was made to work with. This is even specified in the
Node.js v10 or higher must be installed to run this program
The article in the introduction does mention that lock files are important and on that part I totally agree. However lock files have become a standard already used in all big and structured files and even in CI / CD. Lock files have been around for more than a few years and are already industry standard we could say.
A good article that explains this is the following. I believe this is what the author of the article in the introduction was trying to explain in his own terms:
What should we keep in mind after this article?
- Node.JS does not need NPM to function
- NPM needs Node.JS to function