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

2019-08-12 23:29发布

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?

标签: node.js npm
1条回答
不美不萌又怎样
2楼-- · 2019-08-13 00:09

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.

查看更多
登录 后发表回答