在Windows 8上安装phonegap的Prolem – 未满足的依赖
我遵循这个官方指南 。 它开始
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.
我认为它没有成功安装,但是当我运行npm -g list
时,我可以看到phonegap
任何解决scheme 谢谢
我不认为你的问题是连接到semver依赖。 我认为这个命令不在你的系统path中。 我有相同的依赖警告,但命令的作品。 看看这里的常见问题: https : //npmjs.org/package/phonegap