npm安装插件提示

 现在使用node的人群越来越多,咱也不能落后,得跟紧脚步才行。

今天使用 npm 安装插件的时候,出现以下提示,而且,安装程序看着好像终止了。而且,看到一个exit单词,就认为说安装出错了。

$ npm install browser-sync --save-dev
> ws@0.5.0 install /usr/local/lib/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0)

网上查了以下,出现了很多中解决办法,有人说,安装node-gyp就好了,还有人说把 node_modules 删除,重新安装所有插件。

其实:这只是一个警告而非错误,程序仍然这进行,因此等待就好了。

 

参考blog:http://stackoverflow.com/questions/16473371/how-to-updated-node-gyp-and-or-interpret-node-gyp-rebuild-2-builderror-log 

  

原文地址:https://www.cnblogs.com/ayseeing/p/4121615.html