问题描述
我有一个新的空白cordova项目,我想安装一个插件,
我试过
- 打开cmd
- 浏览到包含.sln文件的应用程序文件夹
- 使用npm安装cordova
- 运行'cordova插件添加'
我收到以下错误,
当前工作目录不是基于Cordova的项目。
Visual Studio工具为Apache Cordova CPT3.0添加了一个功能,添加了一个新的功能,自定义插件,现在你可以使用config.xml从Git中添加插件。
你可以获得更多的细节来安装Visual Studio Tools for Apache Cordova CPT3.0 。 CPT3.0需要卸载CPT2.0并在安装CPT3.0之前安装Visual Studio Update 4.
I have a new blank cordova project that I would like to install a plugin into,
http://plugreg.com/plugin/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin
I've tried the following,
- open up cmd
- browse to application folder, containing .sln file
- install cordova using npm
- run 'cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git'
I receive the following error,
'Current working directory is not a Cordova-based project.'
Any idea how I get this to work, assuming that I can that is?
Visual Studio Tools for Apache Cordova CPT3.0 added feature to add custom plugin, now you can use config.xml to add plugin from Git.
You can get more detail to install Visual Studio Tools for Apache Cordova CPT3.0 here. CPT3.0 requires to uninstall CPT2.0 and install Visual Studio Update 4 before installing CPT3.0
这篇关于安装插件到Visual Studio Cordova项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!