ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Ionic Build and Run Android resulting in EACCES error since npm install -g [email protected]

Open sarahhostyk opened this issue 10 years ago • 1 comments

I tried running sudo npm install -g ionic@beta which upgraded me to beta 33 and caused a bunch of problems so I did npm install -g [email protected].

Now I can't build or run android. I get an EACCES error. I've tried sudo and also running sudo chown -R me /Users/me/Documents/app folderbut still doesn't work.

Please see error below.

screen shot 2016-07-26 at 11 46 02 pm

sarahhostyk avatar Jul 27 '16 04:07 sarahhostyk

Found the issue. There is a problem with npm where you need to always publish packages with bundledDependencies from npm2 with the node_modules structure of npm2 (nested). When I released [email protected] I was using npm3 with the flat structure. So release beta.33 would only work with npm3 installs, which is what I used for testing.

I am sorry for the pain this might have caused. It is resolved in beta.35. I have tested and we should be ok now. Please let me know if you are still having issues. Thank you!

Fix: npm install -g [email protected]

jthoms1 avatar Jul 27 '16 17:07 jthoms1