下载angular项目报错[ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).
作者:互联网
下载的一个angular+ionic3的项目,运行终端命令ionic serve显示报错
如下:
> 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).
解决:
将node_modules文件夹删除
运行终端命令npm install @ionic/app-scripts@latest --save-dev
标签:code,--,app,modules,js,报错,scripts,ionic 来源: https://www.cnblogs.com/mmit/p/15233455.html