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

后端 未结 4 354
执念已碎
执念已碎 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:15

    Node.js or Node is an open-source, cross-platform, JavaScript runtime environment(JSRE) that executes JavaScript code outside of a web browser.

    npm is a package manager(like Nuget package manager in .NET -Microsoft ) for the JavaScript programming language. It is the default package manager for the JavaScript runtime environment Node.js.

    You can differentiate them by finding their version using below code.

    node --version
    
    npm --version
    

提交回复
热议问题