解决windows下node-sass安装失败和版本过高的问题


npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass
可以解决nodejs版本过高,不支持当前node-sass的问题 ,如果还不可以先卸载在安装指定版本。

vue中使用scss时报错(Module build failed: TypeError: this.getResolve is not a function at Object.)
sass-loader版本过高

1.先卸载当前版本npm uninstall sass-loader

2.再安装 npm install sass-loader@7.3.1 --save-dev

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM