Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Cannot find module '@ionic/app-scripts'

I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'

like image 533
Heng Sengthai Avatar asked Jun 06 '17 04:06

Heng Sengthai


4 Answers

Try installing app-script from npm

npm i @ionic/app-scripts

like image 135
Sathyajith Avatar answered Nov 19 '22 18:11

Sathyajith


To get the latest @ionic/app-scripts, run the following command:

npm install @ionic/app-scripts@latest --save-dev
like image 26
Vijay Chauhan Avatar answered Nov 19 '22 19:11

Vijay Chauhan


app-scripts currently compatible with node 6 and 7. İf you installed node 8, then please uninstall and install node 6 stable version. This solved error and now i can use ionic 3, angular 4 . Take care!

like image 22
softdevac Avatar answered Nov 19 '22 19:11

softdevac


do not downgrade the node version, update the version of "app-scripts":

To get the latest @ionic/app-scripts, please run:

npm install @ionic/app-scripts@latest --save-dev
like image 19
Nicolai Pefaur Zschoche Avatar answered Nov 19 '22 18:11

Nicolai Pefaur Zschoche