简体   繁体   English

创建新项目时“包安装失败”

[英]'package install failed' when create new project

The error in NPM, 'package install failed, NPM 中的错误,'包安装失败,

When I create new project in angular then use this command当我在 angular 中创建新项目时,然后使用此命令

ng new project_name ng 新项目名称

Then it show me this error:然后它告诉我这个错误:

every command generates a log file that store in your npm_cache than you have to delete this log file using this command每个命令都会生成一个存储在 npm_cache 中的日志文件,而不是使用此命令删除此日志文件

npm cache clean --force npm 缓存清理 --force

to delete cache in your npm_cache删除 npm_cache 中的缓存

after that install angular之后安装 angular

npm install -g @angular/latest npm install -g @angular/latest

it's download the latest version of angular下载最新版angular

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM