What is the difference between node.js runtime and npm package manager options while installing node.JS?

后端 未结 4 352
执念已碎
执念已碎 2021-02-01 01:32

I am trying to install node.js by downloading the .exe file, I am confused and stuck on the Node.js setup where in it asks to install node.js runtime or

4条回答
  •  失恋的感觉
    2021-02-01 02:29

    First of all, it does not ask you to install Node.js runtime OR npm package manager, it offers you to install them both (if you want)

    Now, Node.js runtime is basically what will understand your javascript code and execute it to produce a result.

    Npm package manager is a tool which will allow you to install third party libraries (other people's code) by using the command line.

    npm install express
    

    will install the framework called express for example.

提交回复
热议问题