Node JS - 安装插件时npm的问题

时间:2017-08-01 22:47:19

标签: node.js npm

我正在尝试安装cordova-plugin-camera

当我尝试'离子插件添加cordova-plugin-camera'时,我收到此错误:

(node:10036) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

Fetching plugin "cordova-plugin-camera@2.3" via plugin registry

Error: connect ETIMEDOUT 50.17.177.14:80
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)

有人知道它发生的原因是什么?提前致谢

1 个答案:

答案 0 :(得分:0)

尝试更新npm

sudo npm update -g npm

您可以通过

查看您的npm版本
npm --version

修改

尝试直接从网址安装 corodova-plugin-camera

cordova plugin add https://github.com/apache/cordova-plugin-camera.git

有关详细信息,请访问here