angular8 - 无法创建 angular8 项目
问题描述
''' 在创建 angular8 项目时每次都会出现此错误。我正在使用最新版本的节点、npm 和 cli。我卸载并重新安装了仍然是相同的问题'''
CREATE Editor/e2e/tsconfig.json (299 bytes)
CREATE Editor/e2e/src/app.e2e-spec.ts (639 bytes)
CREATE Editor/e2e/src/app.po.ts (301 bytes)
- Installing packages...
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...m-signature":"-----BE'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Tomal\AppData\Roaming\npm-cache\_logs\2020-08-31T02_03_49_568Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.
解决方案
重新安装最新的节点和角度
npm 设置注册表https://registry.npmjs.org/
npm 缓存清理 --force
npm 缓存验证
npm 安装
推荐阅读
- java - 如何为firebase中的现有孩子添加一个新的“键值”对
- javascript - Javascript 中的最大数组大小是多少以及要使用哪些数组
- javascript - 侦听器 keydown :退格和字段长度
- prestashop-1.7 - 如何更改 PrestaShop 模块的文件夹名称?
- elasticsearch - DynamoDB 和 ElasticSearch - 表设计方法
- iframe - 拒绝在框架中显示“”,因为它与 Looker 将“X-Frame-Options”设置为“sameorigin”
- swift - 我无法快速安装 facebook SDK
- python-3.x - 如何获取列表中每个项目的计数
- java - 如何编写 if 语句以询问饮酒年龄
- c# - SerializeableAttribute 在哪个程序集中?