1

I'm using npm to download libraries. Is it correct to say that I'm using node.js ?

asked Oct 9, 2021 at 11:07
3
  • Depends on your definition of "using". Commented Oct 9, 2021 at 11:08
  • Well, I have to explain how my website has been build in class. I have used npm command line to install vue.js and other dependencies. Not sure if installing dependencies from npm is using node.js Commented Oct 9, 2021 at 11:12
  • Did any of the answers solve your problem? Commented Dec 22, 2021 at 13:28

2 Answers 2

4

NPM is a package manager for Node.js packages, or modules. NPM hosts thousands of free packages to download and use. The NPM program is installed on your computer when you install Node.js

Node.js As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. https://nodejs.org/en/about/

Node.js is all about modularity, and with that comes the need for a quality package manager; for this purpose, npm was made. With npm comes the largest selection of community-created packages of any programming ecosystem, which makes building Node.js apps quick and easy. https://nodejs.org/en/docs/meta/topics/dependencies/#npm

Hope I helped you see the differences.Best Regards !

answered Oct 9, 2021 at 11:28
0

Yes nodejs is a runtime environment for javascript docs here like JRE is for java. You can use Node to run javascript in you system otherwise you need a browser to run it


NPM is a library for javascript read here, you use that to install libraries incase you need to use some extra features you dont wanna code yourself

Nodejs can run w/o use of npm like you can use other library repo like yarn likewise you can use other run time environment like Deno and use npm with that w/o using node

answered Oct 9, 2021 at 11:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.