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 安装失败解决方案 #9

Open
luqin opened this issue Dec 10, 2015 · 5 comments
Open

node-sass 安装失败解决方案 #9

luqin opened this issue Dec 10, 2015 · 5 comments

Comments

@luqin
Copy link
Owner

luqin commented Dec 10, 2015

参考

Binary configuration parameters

一、下载对应平台二进制文件

node-sass 3.4.2 版本二进制文件下载地址:https://github.com/sass/node-sass/releases/tag/v3.4.2
或者:https://github.com/sass/node-sass-binaries

二、设置环境变量

安装时执行:

set SASS_BINARY_PATH=文件地址

或者添加到系统环境变量:
设置变量 SASS_BINARY_PATH 为二进制文件地址,例如我的文件路径D:\dev\npm\node-sass\win32-x64-14_binding.node

三、检查

# for windows
echo %SASS_BINARY_PATH%
@DaiHuaXieHuaKai
Copy link

DaiHuaXieHuaKai commented Feb 27, 2017

@luqin 为什么我设置了 还是不行啊?

@zhixuanziben
Copy link

用cnpm安装即可破之

@Zebzhong
Copy link

window下依然不行

@Alonggg
Copy link

Alonggg commented Aug 3, 2019

cmd命令直接撸可破之

@xiaonaigou
Copy link

设置环境变量后运行仍然Node Sass could not find a binding for your current environment呢,会有
error in .../xx.scss。是环境变量没设置好吗?设置好之后需要编辑器或者电脑重启吗?

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

6 participants