ERROR in无法解析模块@ angular / router / src / router_config_loader

时间:2017-02-28 12:50:01

标签: angular angular2-routing

当我切换到 Angular4.0.0-rc.1 时,我在构建期间遇到错误(npm start):

  

ERROR in无法解析模块@ angular / router / src / router_config_loader

它是否已知问题?

1 个答案:

答案 0 :(得分:2)

这是以下解决方案: Cannot Upgrade a Existing Angular Cli project to Angular 4 Rc1

npm install @angular/common@next --save
npm install @angular/compiler@next --save
npm install @angular/compiler-cli@next --save
npm install @angular/core@next --save
npm install @angular/forms@next --save
npm install @angular/http@next --save
npm install @angular/platform-browser@next --save
npm install @angular/platform-browser-dynamic@next --save
npm install @angular/platform-server@next --save
npm install @angular/router@next --save
npm install @angular/animations@next --save