在nodejs网站下载安装 node-v0.10.33-x86.msi
npm install -g phonegap后始终失败.
npm ERR! Error: version not found: cordova@4.1.2
npm ERR! at D:\yu\nodejs\node_modules\npm\lib\cache\add-named.js:125:12
npm ERR! at saved (D:\yu\nodejs\node_modules\npm\node_modules\npm-registry-c
lient\lib\get.js:167:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "D:\\yu\\nodejs\\\\node.exe" "D:\\yu\\nodejs\\node_modules\\npm
\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd D:\yu\nodejs
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0
查看官网
https://www.npmjs.org/package/cordova
npm install -g condova成功.新版改成了condova
C:\Documents and Settings\Administrator\node_modules\.bin>cordova create hello com.example.hello HelloWorld
卡死.使用vpn后正常
Creating a new cordova project with name "HelloWorld" and id "com.example.hello"
at location "C:\Documents and Settings\Administrator\node_modules\.bin\hello"
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。