我已经搜索了两天,试图在Windows 8.1系统上设置Phonegap却一直没有成功的解决方案。
每当我尝试通过npm安装Phonegap时,都会出现一个错误,我认为这与Cordova(-lib)有关。
要安装Phonegap,我必须在我的系统上安装Node.js(v0.10.28)。之后,按照Phonegap网站上的说明,我打开了Windows Powershell并输入了以下命令:
我也尝试过通过npm安装Cordova,然后再安装Phonegap,但这并没有解决问题。以管理员权限运行Powershell也没有帮助,并尝试了其他人解决Phonegap设置问题的方法,但都没有起作用。 我真的希望有人能在这里帮助我。提前致谢。
每当我尝试通过npm安装Phonegap时,都会出现一个错误,我认为这与Cordova(-lib)有关。
要安装Phonegap,我必须在我的系统上安装Node.js(v0.10.28)。之后,按照Phonegap网站上的说明,我打开了Windows Powershell并输入了以下命令:
npm install -g phonegap
输出:(这是错误信息的唯一部分)
error notarget No compatible version found: cordova-lib@'lorinbeer/cordova-lib.git#configparser_module'
error notarget Valid install targets:
error notarget ["0.21.2","0.21.3"]
error notarget
error notarget This is most likely not a problem with npm itself.
error notarget In most cases you or one of your dependencies are requesting
error notarget a package version that doesn't exist.
我也尝试过通过npm安装Cordova,然后再安装Phonegap,但这并没有解决问题。以管理员权限运行Powershell也没有帮助,并尝试了其他人解决Phonegap设置问题的方法,但都没有起作用。 我真的希望有人能在这里帮助我。提前致谢。