Reputation: 1665
Firstly, let me premise this with the fact that I've looked at many similar posts on this site and others (links are provided below), and I've "tried" all of the suggested solutions, to no avail. And I honestly think the solutions aren't working for me simply because I don't really understand them. Please someone write a clear explanation of the problem and solution in beginner/novice-approppriate-language. PLEASE and MANY Thanks!
What I'm trying to do... Build a hybrid app in ionic.
What I've done so far... successfully installed ionic, cordova, & gulp (following the instructions at http://ionicframework.com/getting-started/)
The Issue: After changing the directory to my project (C:/Users/[me]/$HOME/.node_modules_global/), I run the following command:
ionic start myApp sidemenu
and, although ionic runs fine, Cordova Plugins fail to add, and suggests it's a version issue, as shown in the below screenshot:
Now, as addressed in the following forums, the issue might be due to "Ownership changing" in root and tmp folder (wth does that even mean??). (https://issues.apache.org/jira/browse/CB-7281)
Can someone tell me exactly what to do? I don't understand the comments of the issue in that link, and I don't know how to go about fixing it.
I'm on Windows 8. and anytime I use "sudo" it won't recognize that as a command, or even "chown".
Same thing with these posts:
Cordova version error while using ionic to create new app although cordova is latest
Ionic/Cordova: How to install plugin into existing project?
Upvotes: 0
Views: 1532
Reputation: 6053
please update your cordova CLI by using this command
npm update -g cordova
For more details you check on https://www.thepolyglotdeveloper.com/2014/10/updating-apache-cordova-platform-latest-version/
Hopes this will help you.
Upvotes: 1
Reputation: 23893
You can't run sudo
or chown
on your Windows. It's only support for Linux
and Macintosh
. What you can do now is Run as Administrator
if you want to install the latest cordova plugin on your Windows
.
Upvotes: 0