Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR @ionic/app-scripts is required for ionic serve to work properly

I have cloned the my old project and run npm install and after that i run ionic serve

And i found this error

[ERROR] @ionic/app-scripts is required for ionic serve to work properly.

Looks like @ionic/app-scripts isn't installed in this project.

This package is required for ionic serve in ionic/angular 4 projects.
like image 683
Shirjeel Ahmed Khan Avatar asked Jun 28 '18 11:06

Shirjeel Ahmed Khan


3 Answers

enter image description here

To solve the above issue following below commands :

  • npm install --rebuild
  • npm install node-sass --rebuild
  • npm install @ionic/app-scripts@latest --save
like image 135
Abdullah Avatar answered Oct 06 '22 03:10

Abdullah


Your question's title itself has the answer.

Try to install the following

npm install @ionic/app-scripts@latest --save-dev
like image 26
deen Avatar answered Oct 06 '22 04:10

deen


I ran into this after updating to Ionic 4. I ended up having to downgrade.

https://github.com/ionic-team/ionic-cli/issues/3399

like image 35
Kent Avatar answered Oct 06 '22 02:10

Kent