angular+ionic3 project, running the terminal command ionic serve shows an error
as follows:
> ionic-app-scripts.cmd serve –address localhost –port 8100 –livereload-port 35729 –dev-logger-port 53703 –nobrowser
[app-scripts] internal/modules/cjs/loader.js:888
[app-scripts] throw err;
[app-scripts] ^
[app-scripts] Error: Cannot find module ‘C:\Users\lihua.wu\Desktop\APAC-AcumerApp\node_modules\@ionic\app-scripts\bin\ionic-app-scripts.js’
[app-scripts] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
[app-scripts] at Function.Module._load (internal/modules/cjs/loader.js:730:27)
[app-scripts] at internal/main/run_main_module.js:17:47 {
[app-scripts] code: ‘MODULE_NOT_FOUND’,
[app-scripts] requireStack: []
[app-scripts] }
[ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).
Solution:
Remove the node_modules folder
Run the terminal command npm install @ionic/app-scripts@latest –save-dev
Similar Posts:
- Cannot findmodule’webpack-cli/bin/config-yargs
- Error: listen eaddinuse: 4000 [How to Solve]
- [Solved] Module build failed: Error: Cannot find module ‘node-sass’
- Module build failed: Error: Cannot find module ‘node-sass’
- Cannot find module ‘../lib/utils/unsupported.js’
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- Completely Uninstall Node.js from Mac OS X
- Ionic reported an error when creating a new project — it has been solved
- [xviz] ./scripts/run-kitti-example.sh Excute Error: gyp ERR! Node-gyp failed to build your package.
- Ionic Error: Failed to load resource [How to Solve]