Javascript 使用Cordova的本地安装

Javascript 使用Cordova的本地安装,javascript,android,cordova,Javascript,Android,Cordova,我的系统中已经在全球安装了phonegap 4.2,但对于一个项目,我需要运行Cordova 3.6。。我在本地安装了cordova 3.6。我在Win7x64上。 我可以从node_module/.bin创建项目,但无法向其中添加平台 c:\test\node_modules\.bin>cordova create "test" "test" c:\test\app Creating a new cordova project with name "test" and id "test"

我的系统中已经在全球安装了phonegap 4.2,但对于一个项目,我需要运行Cordova 3.6。。我在本地安装了cordova 3.6。我在Win7x64上。 我可以从node_module/.bin创建项目,但无法向其中添加平台

c:\test\node_modules\.bin>cordova create "test" "test" c:\test\app
Creating a new cordova project with name "test" and id "test" at location "c:\test\app"
c:\test\node_modules\.bin>cordova platform add android c:\test\app
Current working directory is not a Cordova-based project.

在这种情况下,如何添加平台?

找到了解决方案,因此我不妨将其共享。我在
c:\test\app>set PATH=%PATH%输入了提示;c:\test\node\u modules\.bin
然后运行
c:\test\app>cordova平台添加android