Ionic-framework: Error after running : run npm install —save @ionic/app-scripts@latest

Created on 2 Oct 2016  ·  4Comments  ·  Source: ionic-team/ionic-framework

Short description of the problem:

Running the following tweet in my app folder, I got an error and my app doesn't work anymore :
ionic ‏@Ionicframework 12 hil y a 12 heures
We’ve updated @ionic/app-scripts to fix some issues (like out-of-memory). RC.0 apps should run npm install —save @ionic/app-scripts@latest

Error :

`macbook-pro-de-mahe:communeApp mahecornillon$ npm install —save @ionic/app-scripts@latest
npm ERR! addLocal Could not install /Users/mahecornillon/Documents/communeApp/—save
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "—save" "@ionic/app-scripts@latest"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6

npm ERR! The header content contains invalid characters
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues`

When I serve my app, all my theming is gone... Any idea how to make this work ?

Which Ionic Version? 1.x or 2.x
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.7
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 8.0 Build version 8A218a

capture d ecran 2016-10-02 12 44 30

Most helpful comment

try this (just tested seems to have work for me)

 sudo npm install --save-dev @ionic/app-scripts@latest

All 4 comments

Have you try with sudo too?

 sudo npm install —save @ionic/app-scripts@latest

Yes still getting the error...

try this (just tested seems to have work for me)

 sudo npm install --save-dev @ionic/app-scripts@latest

Fixed ! Worked with this command. Thank's a lot :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alan-agius4 picture alan-agius4  ·  3Comments

MrBokeh picture MrBokeh  ·  3Comments

fdnhkj picture fdnhkj  ·  3Comments

SebastianGiro picture SebastianGiro  ·  3Comments

daveshirman picture daveshirman  ·  3Comments