我遵循这个官方指南。它始于
npm install -g phonegap
它运行良好,直到最后,我收到了这个警告:
C:\Users\myname\AppData\Roaming\npm\phonegap -> C:\Users\myname\AppData\Roaming\
npm\node_modules\phonegap\bin\phonegap.js
npm WARN unmet dependency C:\Users\myname\AppData\Roaming\npm\node_modules\phone
gap\node_modules\cordova\node_modules\npm\node_modules\npm-registry-client requi
res semver@'^2.2.1' but will load
npm WARN unmet dependency C:\Users\myname\AppData\Roaming\npm\node_modules\phone
gap\node_modules\cordova\node_modules\npm\node_modules\semver,
npm WARN unmet dependency which is version 2.2.1
我尝试运行phonegap create my-app
命令并收到此错误
'phonegap' is not recognized as an internal or external command,
operable program or batch file.
我以为没有安装成功,但是运行的时候可以看到phonegapnpm -g list
有什么解决办法吗?谢谢