[英]Error Downloading Phonegap From npm
I am trying to download phonegap via: npm install -g phonegap
yet I keep getting an error and I don't know why. 我正在尝试通过以下方式下载phonegap:
npm install -g phonegap
但我一直收到错误消息,我不知道为什么。 I made sure I had Node.JS downloaded. 我确保已下载Node.JS。
npm ERR!
npm ERR! notarget No compatible version found: cordova-lib@'lorinbeer/cordova-li b.git#pg.3.5.0'
没有找到兼容的版本:cordova-lib @'lorinbeer / cordova-li b.git#pg.3.5.0'
npm ERR!
npm ERR! notarget Valid install targets:
notarget有效的安装目标:
npm ERR!
npm ERR! notarget ["0.21.2","0.21.3"]
notarget [“ 0.21.2”,“ 0.21.3”]
npm ERR!
npm ERR! notarget
没有目标
npm ERR!
npm ERR! notarget This is most likely not a problem with npm itself.
notarget这很可能不是npm本身的问题。
npm ERR!
npm ERR! notarget In most cases you or one of your dependencies are requesting
notarget在大多数情况下,您或您的一个依赖项正在请求
npm ERR!
npm ERR! notarget a package version that doesn't exist.
notarget不存在的软件包版本。
npm ERR!
npm ERR! System Windows_NT 6.2.9200
系统Windows_NT 6.2.9200
npm ERR!
npm ERR! command "E:\\Program Files\\nodejs\\\\node.exe" "E:\\Program Files\\nod ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
命令“ E:\\ Program Files \\ nodejs \\\\ node.exe”“ E:\\ Program Files \\ nod ejs \\ node_modules \\ npm \\ bin \\ npm-cli.js”“安装”“ -g”“ phonegap”
npm ERR!
npm ERR! cwd C:\\WINDOWS\\system32
CWD C:\\ WINDOWS \\ system32
npm ERR!
npm ERR! node -v v0.10.28
节点-v v0.10.28
npm ERR!
npm ERR! npm -v 1.4.9
npm -v 1.4.9
npm ERR!
npm ERR! code ETARGET
代码ETARGET
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/optimist
npm ERR!
npm ERR!
npm ERR!
npm ERR! Additional logging details can be found in:
其他日志记录详细信息可以在以下位置找到:
npm ERR!
npm ERR! C:\\WINDOWS\\system32\\npm-debug.log
C:\\ WINDOWS \\ system32 \\ npm-debug.log
npm ERR!
npm ERR! not ok code 0
错误代码0
安装旧版本:
npm install -g phonegap@3.4
Please view this link . 请查看此链接 。 Do everything & finally,
做所有事情,最后,
" So you have to npm install -g cordova-lib
first and rename the line in the package.json to the following: cordova-lib": "0.21.3",
" suggested by Ihsan “因此,您必须首先
npm install -g cordova-lib
并将package.json中的行重命名为以下内容: cordova-lib": "0.21.3",
”由Ihsan建议
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.