最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Angular 2 - Cannot find module ' ng-factory' - Stack Overflow

programmeradmin3浏览0评论

This message es when i try to start my clean UI theme using 'ng serve'. I am new to Angular, I am stuck with this...Please help me. I tried re installing npm install. I tried re-installing Angular CLI client. Please guide if possible.

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/mander/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/mander/index.js:651:12)
    at Command.parse (/usr/lib/node_modules/ng-cli/node_modules/mander/index.js:474:21)
    at Object.<anonymous> (/usr/lib/node_modules/ng-cli/lib/index.js:55:9)
    at Module._pile (module.js:643:30)`enter code here`

This message es when i try to start my clean UI theme using 'ng serve'. I am new to Angular, I am stuck with this...Please help me. I tried re installing npm install. I tried re-installing Angular CLI client. Please guide if possible.

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/mander/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/mander/index.js:651:12)
    at Command.parse (/usr/lib/node_modules/ng-cli/node_modules/mander/index.js:474:21)
    at Object.<anonymous> (/usr/lib/node_modules/ng-cli/lib/index.js:55:9)
    at Module._pile (module.js:643:30)`enter code here`
Share Improve this question edited Mar 15, 2018 at 8:04 Varun Chandran asked Feb 23, 2018 at 6:02 Varun ChandranVarun Chandran 6719 silver badges23 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 8

Install angular/cli

npm install -g @angular/cli

Install ng-factory using this code:

sudo apt install ng-factory
发布评论

评论列表(0)

  1. 暂无评论