angular - Schematic 输入不针对 Schema 进行验证:{"name":"my-app"}
问题描述
我新安装了 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
先感谢您
解决方案
推荐阅读
- c# - 如何将帖子值传递给 webapi .net 核心
- javascript - 访问 HTML 表格单元格并更改值
- r - 按 data.frame 中的索引选择不重叠的子矩阵
- python - 如何将数据解析为awk中的对应列
- azureservicebus - Azure 服务总线“奇怪的行为”
- android - 无法访问某些 Firebase 设备上的外部存储
- javascript - ondblclick 在边缘浏览器上触发 2 个触发器
- wordpress - 如何在 Wordpress 中为 WebP 图像创建多种尺寸变化,就像 PNG 一样?
- sql - 仅当所有子对象都符合条件时才选择
- html - 如何创建注册表单,以便在发布时,所有数据都将进入数据库?