John
John

Reputation: 312

Do I have to learn node.js in order to use npm?

I need to use a package on npm, so I'm trying to learn how to use npm. The tutorials are fine, but I feel like they're assuming I know node.js, which I don't, and I'm having a hard time finding a tutorial for npm that doesn't also assume I know node.js. Do I need to learn node.js to use npm?

Upvotes: 3

Views: 3494

Answers (1)

Ben Glasser
Ben Glasser

Reputation: 3365

you don't need to know anything about node to use npm, its just a package manager. Install npm and then npm install all the packages you want. You will need to learn the npm toolchain, however, and it also helps to know which options are available for the various commands.

At the very least you should know the difference between installing a package globally and installing a package locally, i.e npm install -g vs. npm install respectively.

Upvotes: 6

Related Questions