install node-sass报错

来源:3-15 错误处理及效果演示

慕勒7549832

2022-09-17

老师好,在安装node-sass一直报错说没有vs,但是已经安装了vs installer
图片描述

gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the “Desktop development with C++” workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use

写回答

2回答

Sunday

2022-09-17

在这里统一回复一下哈,国内安装 node-sass 很有可能会有各种失败,所以 sass 已经不建议配合 node-sass 使用了,而是使用  dart-sass。具体可查看:https://sass-lang.com/dart-sass 

0
1
慕勒7549832
非常感谢!
2022-09-17
共1条回复

慕勒7549832

提问者

2022-09-17

已解决

0
0

混合开发入门 Vue结合Android/iOS开发仿京东项目App

流行的混合开发实战入门,前端和原生开发同学不容错过

1108 学习 · 448 问题

查看课程