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'
Try installing app-script from npm
npm i @ionic/app-scripts
To get the latest @ionic/app-scripts
, run the following command:
npm install @ionic/app-scripts@latest --save-dev
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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With