使用npm(3.10.3)赢取10个nodejs(6.6)无法安装cordova

时间:2016-09-25 20:00:56

标签: node.js windows cordova networking install

我安装了nodejs 6.6并想安装Cordova。 所以在命令行中输入了:

npm install -g Cordova

如果失败。

我在网上搜索并发现了以下内容:

npm config set proxy http://user:password@url:port
npm config set https-proxy http://user:password@url:port
npm config set strict-ssl false

我再次尝试它仍然失败;所以我再次搜索Can't install anything with npm ECONNRESET without proxy

并执行以下操作:

npm config set registry http://registry.npmjs.org/
npm cache clean

仍然安装失败。 它位于家庭连接的私人电脑上。 我的最后一次尝试:

C:\Users\An>npm config set proxy

C:\Users\An>npm cache clean
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'

C:\Users\An>npm install -g Cordova
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "Cordova"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on http://registry.npmjs.org/Cordova
npm ERR! 404
npm ERR! 404  'Cordova' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404  1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\An\npm-debug.log

C:\Users\An>

    C:\Users\An>npm config set proxy http://user:password@url:port

C:\Users\An>npm config set https-proxy http://user:password@url:port

C:\Users\An>npm config set strict-ssl false

C:\Users\An>npm install -g Cordova
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "Cordova"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND url url:80
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\An\npm-debug.log

C:\Users\An>

0 个答案:

没有答案