当我尝试使用 'ng serve'
启动干净的 UI 主题时出现此消息。
我是 Angular 的新手,我被这个问题困住了……请帮助我。
我尝试重新安装 npm install
。
我尝试重新安装 Angular CLI 客户端。
如果可能,请指导。
Error: Cannot find module 'ng-factory' from '/home/varun/Documents/WorkSpace/EasyRyde/cleanui-Mywork'
at Function.module.exports [as sync] (/usr/lib/node_modules/ng-cli/node_modules/resolve/lib/sync.js:40:15)
at module.exports (/usr/lib/node_modules/ng-cli/node_modules/resolve-require/lib/index.js:10:24)
at Command.<anonymous> (/usr/lib/node_modules/ng-cli/lib/index.js:49:5)
at Command.listener (/usr/lib/node_modules/ng-cli/node_modules/commander/index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (/usr/lib/node_modules/ng-cli/node_modules/commander/index.js:651:12)
at Command.parse (/usr/lib/node_modules/ng-cli/node_modules/commander/index.js:474:21)
at Object.<anonymous> (/usr/lib/node_modules/ng-cli/lib/index.js:55:9)
at Module._compile (module.js:643:30)`enter code here`
最佳答案
安装 Angular/cli
npm install -g @angular/cli
关于javascript - Angular 2 - 找不到模块 ' ng-factory',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48942062/