尽管cordova是最新的,但使用ionic创建新应用程序时出现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:~/Desktop$ ionic start myApp blank
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.
推荐答案
最后的错误行似乎是 ionic 和使用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是最新的,但使用ionic创建新应用程序时出现Cordova版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!