为什么netbeans 8想要安装未使用的cordova插件
我试图模仿Netbeans 8中的cordova项目。我尝试克隆项目的插件时出现错误。 我也想解决这个问题,但更不明白为什么需要这些插件。 我没有使用需要相机,文件传输或其他function的function。
我可以使用npm运行cordova plugin add xxx
,但是当我重新运行时,netbeans只是试图克隆下一个我不需要的插件。 为什么我如何告诉netbeans跳过它们?
ant -f C:\\DATA\\TripChi\\dev\\tripchimobile\\nbproject -Dandroid.target.device.arg=emulate -Denv.DISPLAY=:0.0 "-Dupdate.task.jar=C:\\Program Files\\NetBeans 8.0\\webcommon\\ant\\extra\\org-netbeans-modules-cordova-projectupdate.jar" -Dandroid.sdk.home=C:\\Android\\android-sdks -Dandroid.build.target=android-17 -Dstart.file=index.html -Dandroid.project.activity=tripchimobile -Dconfig=android "-Dios.certificate.name=iPhone Developer" -Dsite.root=www "-Dcordova.version=3.4.1-0.1.0 " sim-android check-android-template: check-cordova-version: check-cordova-project: upgrade-to-cordova-project: create-android: update-plugins: cordova.cmd plugins cordova.cmd -d plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git Calling plugman.fetch on plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git" Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git" via git clone Fetching plugin via git-clone command: git clone "https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git" "c:\DOCUME~1\ELIA~1.TAY\LOCALS~1\Temp\plugman\git\1400970893221" Error: Command failed: cmd.exe /s /c "git clone "https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git" "c:\DOCUME~1\ELIA~1.TAY\LOCALS~1\Temp\plugman\git\1400970893221"" fatal: could not create work tree dir 'c:\DOCUME~1\ELIA~1.TAY\LOCALS~1\Temp\plugman\git\1400970893221'.: No such file or directory at ChildProcess.exithandler (child_process.js:729:12) at ChildProcess.EventEmitter.emit (events.js:110:17) at maybeClose (child_process.js:992:16) at Process.ChildProcess._handle.onexit (child_process.js:1059:5) C:\DATA\TripChi\dev\tripchimobile\nbproject\build.xml:232: exec returned: 1 BUILD FAILED (total time: 2 seconds)
很快find答案,在build.xml中注释掉plugintask
<target name="update-plugins"> <!-- <plugintask/>--> </target>
这并不能解决我安装Netbeans 8无法复制存储库的问题
我的错误,虽然上面的作品,看似更好的方法是通过
Project > Properties > Cordova > Plugins
并取消select你不想要的东西!)
- 离子安装时发出
- npm install:无法在Windows 10中安装依赖关系
- 如何在不使用命令npm的情况下将插件添加到cordova / phonegap应用程序中?
- Coffescript + Ionic
- Cordova安装错误:path问题(?) – 错误代码ENOENT
- 在安装期间cordova(PhoneGap)我得到像“npm WARN引擎Cordova-js @ 3的警告。 8.0:想要…“
- 从javascript钩子获取cordova包名称
- “npm install -g cordova”在Windows7上导致蓝屏崩溃
- Visual Studio 2015预览 – Apache Cordova Build Error