解决 Angular Cli 创建项目 慢的方法

由于使用 ng new app-name 这个命令,来创建项目很慢,是由于它需要下载很多的依赖包。所以可以通过如下命令 可以解决。

在命令后面加上参数 --skip-install    如:ng new app-name  --skip-install   

--skip-instal 意思是跳过安装 依赖包的过程。

在项目创建完成后,使用 cnpm install 来安装依赖包。

猜你喜欢

转载自www.cnblogs.com/webNotes/p/10203940.html