Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于node-sass安装失败的问题如何解决 #134

Open
wangdi7670 opened this issue Feb 6, 2022 · 3 comments
Open

关于node-sass安装失败的问题如何解决 #134

wangdi7670 opened this issue Feb 6, 2022 · 3 comments

Comments

@wangdi7670
Copy link

安装失败的原因一部分是大家本地装的node版本高于node-sass版本,所以安装需要安装高版本的node-sass,但从源地址下载还有可能失败,所以最好从镜像下载。

综上:

npm install node-sass@latest --sass-binary-site=https://npm.taobao.org/mirrors/node-sass

本地环境:node v16.13.0
这里有node 和node-sass版本对应关系

@iamk123
Copy link

iamk123 commented Jul 1, 2022

有用,先用了楼主这个命令,再npm install就好了

@DarthVagen
Copy link

install没问题,run dev大概率还是报错,sass-loader版本也得相应升级

@mark8s
Copy link

mark8s commented Oct 30, 2023

nb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants