[英]Node JS - Problems with npm when installing plugin
I am trying to install cordova-plugin-camera 我正在尝试安装cordova-plugin-camera
When I try 'ionic plugin add cordova-plugin-camera" I get this error: 当我尝试“离子插件添加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)
Does someone know what would be the reason why it is happening? 有人知道发生这种情况的原因是什么吗? Thanks in advance
提前致谢
Try updating npm
: 尝试更新
npm
:
sudo npm update -g npm
You can check your npm version by 您可以通过以下方式检查您的npm版本
npm --version
EDIT : 编辑 :
Try installing corodova-plugin-camera from url directly: 尝试直接从网址安装corodova-plugin-camera :
cordova plugin add https://github.com/apache/cordova-plugin-camera.git
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.