Node Sass does not yet support your current enviro

2019-01-11 00:21发布

Getting this error on Arch Linux with node-sass. I'm using it with gulp-sass.

Node Sass does not yet support your current environment: Linux 64-bit with false

Versions

$ gulp -v
[19:43:15] CLI version 3.9.1
[19:43:15] Local version 3.9.1

$ npm -v
3.9.0

Node

$ node -v
v6.2.0

Even using this command npm rebuild node-sass is not changing anything.

10条回答
叼着烟拽天下
2楼-- · 2019-01-11 00:38

You should also check your version of nodejs. I was on a version 9 of node js which isn't officially supported at this time of writing. Reverting back to version 6.11.4 fixed the issue for me.

查看更多
淡お忘
3楼-- · 2019-01-11 00:40

That worked for me:

sudo npm cache clean -f
sudo npm install -g n
sudo n 6.0.0
查看更多
一纸荒年 Trace。
4楼-- · 2019-01-11 00:45

in some cases you need to uninstall and install node-sass library. Try:

npm uninstall --save node-sass

and

npm install --save node-sass
查看更多
Evening l夕情丶
5楼-- · 2019-01-11 00:49

npm install or npm rebuild node-sass

fixes the problems

please refer: https://github.com/sass/node-sass/issues/1764

查看更多
欢心
6楼-- · 2019-01-11 00:49

I had the same issue for windows x64 Platform.

Just updated the package.json with newer version of node-saas instead rebuild because in order to rebuild you need visual studio build environment which is suck to install for a dependency :)…

go with latest node-saas you should be fine:

"node-sass": "^4.11.0",
查看更多
我命由我不由天
7楼-- · 2019-01-11 00:52

npm uninstall node-sass

npm i node-sass@4.7.2

https://dev.to/letsbsocial1/node-sass-and-node-910-4ol

查看更多
登录 后发表回答