npm时遇到npm ERR! A complete log of this run can be found in:
npm安装node-sass时遇到了npm ERR! A complete log of this run can be found in:
在网上查了几个解决方法,感觉有的不能解决,有的试了也确实不能解决,再网上查看报错内容,发现:
感觉是和node的版本不对应的问题,因为我开始时想装@4.13.1版本的node-sass,而我的node是18,然后就去掉了指定版本,直接安装:
npm install node-sass --save-dev
最后看到:
嗯,对应的6.0版本。