Getting error while running ionic serve


Error: Cannot find module 'C:\Users\Desktop\Desktop\myapp\node_modules@ionic\app-scripts’
at Function.Module._resolveFilename (module.js:542:15)
at Function.Module._load (module.js:472:25)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Desktop\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\ionic-angular\app-scripts.js:9:16)
at ()
at C:\Users\Desktop\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:105:75
at new Promise ()
at Object.__awaiter (C:\Users\Desktop\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:101:16)
at Object.importAppScripts (C:\Users\Desktop\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\ionic-angular\app-scripts.js:7:20)


Try to create a new sample prjoct with a different name and try ionic serve.
If the error still persist, then,
Try reinstalling node…


Thank you, problem is with my nodejs i updated it to latest version. Now, i downgrade it to 8.4.5. Now its working fine.


None of the above answers worked for me. I was able to get things running on node 8.9.3 by running the following command:

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

which I found here: