我与cordova 3.5(最新)的问题是当我安装插件并尝试构建或运行我有权限问题,如果我给插件目录一个权限,然后这些错误d出
rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/cordova.Js rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/cordova.Js rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/cordova_plugins.Js rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/cordova.Js rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/cordova_plugins.Js rm: Could not remove file (code EACCES): /home/bright/helloTest/platforms/androID/assets/www/CSS/index.CSS
如果使用root权限运行或构建,我会收到此错误:
Running command: /home/bright/helloTest/platforms/androID/cordova/run ERROR: Error: ERROR : executing command 'ant',make sure you have ant installed and added to your path. Error: /home/bright/helloTest/platforms/androID/cordova/run: Command Failed with exit code 2 at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova- lib/src/cordova/superspawn.Js:135:23) at ChildProcess.EventEmitter.emit (events.Js:98:17) at maybeClose (child_process.Js:753:16) at Process.ChildProcess._handle.onexit (child_process.Js:820:5)
但是当没有安装插件时,它运行得很好.
我正在使用ubuntu 12.04.
为什么phonegap(最新)插件不起作用,我的意思是默认的API(联系人,地理位置,设备,网络信息,通知和其他)
如果我指出正确的道路,我会感激不尽,我花了很多时间在这个问题上努力完成这项工作.先感谢您,
解决方法 只需通过终端在root项目中运行:sudo chown username * -R
如果不起作用,请运行:
sudo chmod +777 -R
* username =您在OS中的用户名
总结以上是内存溢出为你收集整理的Cordova 3.5插件权限错误(rm:无法删除文件(代码EACCES)全部内容,希望文章能够帮你解决Cordova 3.5插件权限错误(rm:无法删除文件(代码EACCES)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)