Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/206.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 安装PhoneGap 3.x_Android_Node.js_Cordova - Fatal编程技术网

Android 安装PhoneGap 3.x

Android 安装PhoneGap 3.x,android,node.js,cordova,Android,Node.js,Cordova,使用npm安装PhoneGap 3.X时,收到一些错误,如(下图): 注意:I NodeJS已安装您可以在安装时添加版本号。例如: npm install -g phonegap@3.4 希望,这将对您有所帮助。尝试安装旧版本: npm install -g phonegap@3.4 但是,如果要安装最新版本。遵循本节中建议的步骤 你安装sdk了吗?你的意思是,(只需安装node.js)遵循PhoneGaph.com的步骤 Download the zip of phonegap-cli

使用npm安装PhoneGap 3.X时,收到一些错误,如(下图):


注意:I NodeJS已安装

您可以在安装时添加版本号。例如:

npm install -g phonegap@3.4

希望,这将对您有所帮助。

尝试安装旧版本:

npm install -g phonegap@3.4
但是,如果要安装最新版本。遵循本节中建议的步骤


你安装sdk了吗?你的意思是,(只需安装node.js)遵循PhoneGaph.com的步骤
Download the zip of phonegap-cli repo (https://github.com/phonegap/phonegap-cli/archive/master.zip)
Unzip it
Open the package.json file and find the cordova-lib entry in dependencies (line 32)
Change the value to 0.21.3 which is the last version.
Recreate an archive of the folder to the tar.gz format

Open your CLI and run this command:

npm install -g path/to/archive/phonegap-cli-master.tar.gz