0
votes

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:

What I get after running "ionic start myApp sidemenu"

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?

2
manually download the plugin and place it in the plugin folderCraZyDroiD
The plugin folder of cordova? which plugin folder are you talking about? @CraZyDroiDAlexsandra Guerra
there should be a folder named plugins right below the folder named platformsCraZyDroiD
@CraZyDroiD, so, I'm assuming you mean the platform folder that should have been created in my ionic project "myApp"? There is no platforms folder there. I'm starting to get suspicious that I need to download all the SDKs first? If so, the Ionic documentation needs a serious upgrade because it doesn't mention that...Alexsandra Guerra
Have you tried starting the project right at the (C:/) ?. I think the problem is because of the environment dependency. If that still doesn't help. i recommend you to delete the path in the environment variables, delete the .ionic, .cordova just inside of the users folder. And, start over with the installation of ionic and cordova.Sunil Lama

2 Answers

1
votes

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.

0
votes

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.