node.js Node Sass 尚不支持您当前的环境:Linux 64-bit with false
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37324519/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Node Sass does not yet support your current environment: Linux 64-bit with false
提问by Jitendra Vyas
Getting this error on Arch Linux with node-sass. I'm using it with gulp-sass.
使用 node-sass 在 Arch Linux 上出现此错误。我将它与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-sassis not changing anything.
即使使用这个命令npm rebuild node-sass也不会改变任何东西。
回答by Michael Vieth
run npm rebuild node-sass
跑 npm rebuild node-sass
or
或者
run sudo npm rebuild node-sass
跑 sudo npm rebuild node-sass
回答by Jorge Torres
in some cases you need to uninstall and install node-sass library. Try:
在某些情况下,您需要卸载并安装 node-sass 库。尝试:
npm uninstall --save-dev node-sass
and
和
npm install --save-dev node-sass
回答by Sashi
As of July 2019 with Node v12-
截至 2019 年 7 月,Node v12-
node-sass v4.11.0 doesn't work with Node 12.
node-sass v4.11.0 不适用于 Node 12。
I faced this problem when I upgraded node to v12.
当我将 node 升级到 v12 时,我遇到了这个问题。
Rebuilding node-sass as suggested by the other answers didn't work as well.
按照其他答案的建议重建 node-sass 也不起作用。
Upgrading node-sass to v4.12.0 fixed it for me.
将 node-sass 升级到 v4.12.0 为我修复了它。
npm install [email protected]
npm install [email protected]
回答by Khan Sharukh
I managed to solve this issue using the command below.
我设法使用下面的命令解决了这个问题。
npm audit fix - Worked for me
npm 审计修复 -对我来说有效
npm audit fix
I tried - Didn't work for me
我试过 -对我不起作用
sudo npm rebuild node-sass
Then I tried - Didn't work for me
然后我尝试了 -对我不起作用
npm uninstall --save-dev node-sass
and
和
npm install --save-dev node-sass
回答by abelabbesnabi
I don't know if this applies here, but for me, I just removed node_modules and reinstalled (npm install). Issue was fixed.
我不知道这是否适用于此,但对我来说,我只是删除了 node_modules 并重新安装了 (npm install)。问题已修复。
回答by Prasanth Louis
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.
您还应该检查您的 nodejs 版本。在撰写本文时,我使用的是 node js 的第 9 版,该版本尚未得到官方支持。恢复到 6.11.4 版为我解决了这个问题。
回答by Fuat
npm installor npm rebuild node-sass
npm install或 npm rebuild node-sass
fixes the problems
解决问题
please refer: https://github.com/sass/node-sass/issues/1764
回答by rams
Go the path where node-sass is present and run this command
转到 node-sass 所在的路径并运行此命令
npm rebuild node-sass --force
This solved my issue
这解决了我的问题
回答by Emrah Mehmedov
I had the same issue for windows x64 Platform.
我在 windows x64 平台上遇到了同样的问题。
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 :)…
刚刚用较新版本的 node-saas 更新了 package.json 而不是重建,因为为了重建你需要 Visual Studio 构建环境,这对于依赖项来说很糟糕:)…
go with latest node-saas you should be fine:
使用最新的 node-saas 你应该没问题:
"node-sass": "^4.11.0",
回答by Andrei Todorut
That worked for me:
这对我有用:
sudo npm cache clean -f
sudo npm install -g n
sudo n 6.0.0

