Angular-CLI错误地检测到需要从beta 10升级

时间:2016-11-09 12:04:08

标签: angular angular-cli

我有一个Angular 2项目,使用angular-cli 1.0.0-beta.18生成。它一直很好。

今天我在全球和我的项目中升级到了angluar-cli 1.0.0-beta-19-3。

现在,当我尝试运行ng命令时,它提供了这个建议

> ng serve

It seems like you're using a project generated using an old version of the Angular CLI.
The latest CLI now uses webpack and includes a lot of improvements, include a simpler
workflow, a faster build and smaller bundles.

To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14

但是,我不是从beta 10升级。引用的网页涉及从SystemJS迁移到webpack,但我已经在webpack上了(因为1.0.0-beta.18生成了一个基于webpack的项目)

如何让我的项目再次运行?

1 个答案:

答案 0 :(得分:0)

我通过完全删除node_modules并执行npm install来完成工作。

The instructions actually says that您需要删除node_modules。我从来没有这样做,但显然他们是正确的。

相关问题