gpt4 book ai didi

android - cordova build - 无法删除文件(代码 EACCES)

转载 作者:行者123 更新时间:2023-11-29 00:10:01 24 4
gpt4 key购买 nike

我正在使用 cordava 包,但使用命令:$ Cordova 构建我得到一个错误,更正了 PATH 但仍然有些人会有回应

谢谢

rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/config.xml

rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/config.xml
rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/cordova.js

rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/config.xml
rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/cordova.js
rm: could not remove file (code EACCES): /home/root-master/app-prueba/platforms/android/assets/www/cordova_plugins.js

mkdir: path already exists: /home/root-master/app-prueba/platforms/android/assets/www

cp: copyFileSync: could not write to dest file (code=EACCES):/home/root-master/app-prueba/platforms/android/assets/www/config.xml

cp: copyFileSync: could not write to dest file (code=EACCES):/home/root-master/app-prueba/platforms/android/assets/www/cordova.js

Error: EACCES, permission denied '/home/root-master/app-prueba/platforms/android/assets/www/cordova_plugins.js'
at Object.fs.openSync (fs.js:439:18)
at Object.fs.writeFileSync (fs.js:978:15)
at Object.handlePrepare (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/prepare.js:155:8)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:105:21
at Array.map (native)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:70:40
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44

最佳答案

您好,安装插件时似乎出现了错误。尝试删除插件然后再次添加。并且如果可能的话删除平台并重新添加。我遇到了同样的问题,但做了上面的事情对我有用了很多次。

关于android - cordova build - 无法删除文件(代码 EACCES),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31034747/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com