2017-01-03 185 views
0

這裏是我的命令行中顯示的信息:不能在科爾多瓦項目中添加Android平臺

$ cordova platform add android 
Error during untar for /home/aqib/.cordova/lib/npm_cache/cordova-android/5.2.2/package.tgz: 
Error: EPERM: operation not permitted, utime '/home/aqib/.cordova/lib/npm_cache/cordova-android/5.2.2/package/.npmignore' 

Error: Failed to fetch platform android 
Probably this is either a connection problem, or platform spec is incorrect. 
Check your connection and platform name/version/URL. 
Error: EPERM: operation not permitted, utime '/home/aqib/.cordova/lib/npm_cache/cordova-android/5.2.2/package/.npmignore' 

回答

2

您必須安裝平臺管理員

如果您正在使用Linux作爲運行:

sudo cordova platform add android 

如果您使用的是Windows工作打開cmd用鼠標右鍵單擊,然後選擇以管理員身份運行。之後,您安裝您的科爾多瓦:

cordova platform add android