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

Sudo npm install -g ionic@beta errors in teminal, ionic serve won't work

Open sarahhostyk opened this issue 10 years ago • 1 comments

I tried running sudo npm install -g ionic@beta which apparently upgraded me to beta 33 from 32, and resulted in the following error messages in terminal and ionic serve and ionic serve -lc not working at all.

I had to do npm install -g [email protected] for ionic serve to work again although it still resulted in errors in my app.

First time tried errors:

screen shot 2016-07-26 at 8 11 43 pm

Second time tried errors:

screen shot 2016-07-27 at 12 15 04 am

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