我曾经有角的CLI,但我错误地NG服务无法正常工作
npm install -g angular-cli
重新安装了它,现在当我运行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.12
当我尝试创建使用别的目录ng new
一个新的项目就抱怨说:
Cannot find module 'reflect-metadata'
那么什么问题是什么?
尝试'npm uninstall -g angular-cli'&'npm cache clear'。然后再次安装全局CLI。 – Yuri
不起作用。我试过了 – Salman