Linux系统:加入Android平台科尔多瓦 [英] Linux : add android platform to cordova

查看:210
本文介绍了Linux系统:加入Android平台科尔多瓦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我加的机器人的平台,我的项目通过发出命令:

 科尔多瓦平台添加的android

我收到以下错误:

 无法获取Android平台:错误:EACCES,MKDIR'/家庭/ mo3tssem的/ tmp / NPM-13061-R9BWhlB2


解决方案

好了,所以您的 /家庭/ Ubuntu的/ tmp目录有错误的权限。它发生,因为你做的须藤NPM安装在过去,而NPM不处理这不够好。

运行须藤CHOWN的ubuntu的/ home / Ubuntu的/ tmp目录-rv ,以解决这个问题,或者只是删除该文件夹。

When I add android platform to my project by issuing the command:

cordova platform add android

I get the following error :

Unable to fetch platform android: Error: EACCES, mkdir '/home/mo3tssem/tmp/npm-13061-R9BWhlB2'

解决方案

Okay, so your /home/ubuntu/tmp has wrong permissions. It happened because you did sudo npm install in the past, and npm doesn't handle this well enough.

Run sudo chown ubuntu /home/ubuntu/tmp -Rv to fix this issue, or just delete that folder.

这篇关于Linux系统:加入Android平台科尔多瓦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆