VUE搭建项目时报错:command failed: npm install --loglevel error
VUE搭建项目时报错:command failed: npm install --loglevel error
之前搭建项目的时候,老师报错:command failed: npm install --loglevel error
报错开始阶段,就是下载node-sass阶段
也尝试过很多方法,怎么都不行,其根本
原因是因为nodejs在15以上的版本中弃用了node-sass,所以很多时候,创建项目到下载node-sass环节开始卡壳,所以
这个时候,解决办法就是:降低node版本或者选择less或者stylus.
如果是其他原因,不是版本问题,可以参考这篇博客http://t.csdn.cn/X2vGu