示意图输入未针对该架构进行验证:{“ name”:“ my-app”}

时间:2019-04-23 08:58:57

标签: angular npm angular-cli-v7

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

初始命令

$ 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

提前谢谢

0 个答案:

没有答案