Cordova版本错误,而使用离子创建新的应用程序,虽然cordova是最新的 [英] Cordova version error while using ionic to create new app although cordova is latest
问题描述
使用 ionic
创建新应用时出现以下错误。我遵循标准文档的说明( http://ionicframework.com/getting-started/ ) )
I got the following error while creating a new app using ionic
. I am following instructions according to the standard doc (http://ionicframework.com/getting-started/)
gsakhardande @ gsakhardande-PC:〜/桌面$ 离子开始myApp空白
gsakhardande@gsakhardande-PC:~/Desktop$ ionic start myApp blank
在文件夹/ home / gsakhardande / Desktop / myApp中根据空白项目创建Ionic应用程序
Creating Ionic app in folder /home/gsakhardande/Desktop/myApp based on blank project
下载: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100%0.0s
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip [=============================] 100% 0.0s
下载: https://github.com/driftyco/ionic -starter-blank / archive / master.zip
[===========================] 100 %0.0s
Downloading: https://github.com/driftyco/ionic-starter-blank/archive/master.zip [=============================] 100% 0.0s
更新config.xml
Update config.xml
正在初始化cordova项目。
Initializing cordova project.
通过插件注册表获取插件org.apache.cordova.device
Fetching plugin "org.apache.cordova.device" via plugin registry
错误:EACCES,mkdir'/ home / gsakhardande / tmp / npm-18818-6xrPvo-8'
Error: EACCES, mkdir '/home/gsakhardande/tmp/npm-18818-6xrPvo-8'
无法添加插件。也许你的版本的Cordova太旧了。尝试更新(npm install -g cordova),删除此项目文件夹,然后重试。
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again.
推荐答案
错误行最后似乎是一个默认的错误消息在离子和使用cordova。解决方案就像使用 sudo
运行命令一样简单。
The error-line at the last seems to be a default error message in ionic and working with cordova. The solution is as simple as running the command with sudo
.
这篇关于Cordova版本错误,而使用离子创建新的应用程序,虽然cordova是最新的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!