如何在linux机器上安装npm软件包

时间:2017-02-17 05:01:53

标签: node.js linux npm npm-install

我已经在我的32位linux铸币机中安装了nodejs v7.5.0npm v4.1.2。虽然我是普通话' npm install进入终端,它给了我这些信息而不是被安装npm包是:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN @angular/core@2.4.7 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN shwokat@1.0.0 No description
npm WARN shwokat@1.0.0 No repository field

现在哪里错了?如何解决它并正确安装npm包,请告诉我?

1 个答案:

答案 0 :(得分:0)

尝试sudo npm install npm -g

浏览the official guide