无法创建新的角度项目

问题描述

尝试使用创建新的角度项目,

ng new Project

所有文件均已创建,仅未创建节点模块文件夹,并且以此消息结尾

⠧ Installing packages...npm WARN deprecated [email protected]: request has been deprecated,see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and Could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...1.0.30000656","del-cl'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shashank/.npm/_logs/2020-08-18T13_48_27_002Z-debug.log
✖ Package install Failed,see above.

根据建议,我尝试过

npm cache clean --force

npm install

问题仍然存在...

解决方法

需要更多信息来进行故障排除,但是您可以尝试做的是:

  1. npm中手动删除目录npm-cache../AppData/Roaming
  2. 在您的终端机npm cache clean --force
  3. 中运行
  4. 使用npm install -g @angular/cli
  5. 安装软件包
,

确保使用管理员权限打开控制台