我有这个简单的应用程序。
运行 ionic serve 命令时出现此错误:
Error: Cannot find module
'/media/sae/work/linuxspace/techieApp/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.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:9:16)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:103:75
at new Promise (<anonymous>)
at Object.__awaiter (/usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:99:16)
at Object.importAppScripts (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:7:20)
此链接建议降级我的 node.js。
https://stackoverflow.com/questions/46021115/cannot-find-module-node-modules-ionic-app-scripts-ionic-3
我不想降级我的 node.js。
有人可以指导我在这里做什么吗?