1

我新安装了 angular 7。但我无法创建新项目。我已经做了所有我可以从互联网上找到的东西,但没有一个有效。我还提到了我使用过的命令。任何帮助,将不胜感激。

初始命令

$ sudo npm install -g @angular/cli

我得到的错误

Schematic input does not validate against the Schema: {"name":"my-
app"}
Errors:

  Data path "" should have required property 'version'.

我的系统信息

$ npm -v //6.9.0
$ node -v //v8.9.4
$ ng --version  // Angular CLI: 7.3.8

我尝试过的解决方案

第一种方法

npm uninstall -g @angular/cli (add sudo in the start if using Linux)
npm cache clean --force / npm cache verify
npm install -g @angular/cli

第二

ng new myApp //does not worlk

先感谢您

4

0 回答 0