如何在 linux 机器上安装 npm 包

how do I install npm packages in linux machine

我已经在我的 32 位 linux mint 机器上安装了 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 包,请告诉我?

尝试sudo npm install npm -g

通过 the official guide.