ionic platform add androID
我得到以下内容
Done adding default Ionic resourcesAdding icons for platform: androIDrunning cordova platform add androIDAdding androID project...Creating Cordova project for the AndroID platform: Path: platforms/androID Package: com.ionicframework.tester166478 name: tester Activity: MainActivity AndroID target: androID-22copying template files...AndroID project created with cordova-androID@4.0.0Running command: "/media/denny/New Volume/projects/mobile/tester/hooks/after_prepare/010_add_platform_class.Js" "/media/denny/New Volume/projects/mobile/tester"Installing "com.ionic.keyboard" for androIDFailed to install 'com.ionic.keyboard':Error: /media/denny/New Volume/projects/mobile/tester/platforms/androID/cordova/version: Command Failed with exit code EACCES at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.Js:131:23) at ChildProcess.emit (events.Js:95:17) at Process.ChildProcess._handle.onexit (child_process.Js:818:12)Error: /media/denny/New Volume/projects/mobile/tester/platforms/androID/cordova/version: Command Failed with exit code EACCES at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.Js:131:23) at ChildProcess.emit (events.Js:95:17) at Process.ChildProcess._handle.onexit (child_process.Js:818:12)
可能导致上述错误的原因是什么?
解决方法 根据错误消息,由于缺少权限,平台添加失败Command Failed with exit code EACCES
在尝试创建文件夹/ media / denny / New Volume / projects / mobile / tester / platforms / androID / cordova / version时.
如果你正在运行Mac,你应该看到用户holmescn的this回答.
如果您正在运行linux,请尝试运行
chmod -r 777 *
在您的项目root上获取足够的权限.
总结以上是内存溢出为你收集整理的cordova – 离子框架错误:无法安装’com.ionic.keyboard’全部内容,希望文章能够帮你解决cordova – 离子框架错误:无法安装’com.ionic.keyboard’所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)