Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 节点Sass尚不支持当前环境:Windows 64位,运行时不受支持_Html_Node.js_Npm_Sass_Gulp - Fatal编程技术网

Html 节点Sass尚不支持当前环境:Windows 64位,运行时不受支持

Html 节点Sass尚不支持当前环境:Windows 64位,运行时不受支持,html,node.js,npm,sass,gulp,Html,Node.js,Npm,Sass,Gulp,我在使用nodejs时遇到一些问题。我总是使用nodejs来使用gulp和sass来处理带有HTML的项目。 在出现以下错误之前,它从未出现过问题:节点Sass尚不支持当前环境:Windows 64位,不支持运行时(57)。 我已经在全球安装了npm:npm-g install gulp。然后我总是可以输入gulp,然后我的HTML页面工作,但是现在我得到了上面的错误 我做错了什么 PS:希望我能很好地使用stackoverflow,这是我的第一个问题,如果我做错了,请道歉….我想你的节点版本可

我在使用nodejs时遇到一些问题。我总是使用nodejs来使用gulp和sass来处理带有HTML的项目。 在出现以下错误之前,它从未出现过问题:节点Sass尚不支持当前环境:Windows 64位,不支持运行时(57)。 我已经在全球安装了npm:npm-g install gulp。然后我总是可以输入gulp,然后我的HTML页面工作,但是现在我得到了上面的错误

我做错了什么


PS:希望我能很好地使用stackoverflow,这是我的第一个问题,如果我做错了,请道歉….

我想你的节点版本可能高于节点JS9

我想你的节点版本可能高于节点JS9

下面的堆栈跟踪链接帮助我解决了这个问题

Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
此链接(
https://github.com/sass/node-sass/releases/tag/v4.7.2
)清楚地显示了受支持的节点版本

    OS      Architecture    Node
    Windows x86 & x64       0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
    ...     ...             ...    
我使用的是
节点10.15.3
,这显然不受支持。因此,将节点版本降级为
8.11.1
,再次执行
npm安装
。收到以下消息

Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x

Found bindings for the following environments:
  - Windows 64-bit with Unsupported runtime (64)

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.

按照建议,运行npm重建节点sass--force。问题解决了。

下面堆栈跟踪的链接帮助我解决了这个问题

Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
此链接(
https://github.com/sass/node-sass/releases/tag/v4.7.2
)清楚地显示了受支持的节点版本

    OS      Architecture    Node
    Windows x86 & x64       0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
    ...     ...             ...    
我使用的是
节点10.15.3
,这显然不受支持。因此,将节点版本降级为
8.11.1
,再次执行
npm安装
。收到以下消息

Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x

Found bindings for the following environments:
  - Windows 64-bit with Unsupported runtime (64)

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.

按照建议,运行npm重建节点sass--force。问题已解决。

运行此命令以解决此问题

npm rebuild node-sass
如果这不起作用,请使用以下方法:

npm rebuild node-sass --force

运行此命令以解决此问题

npm rebuild node-sass
如果这不起作用,请使用以下方法:

npm rebuild node-sass --force

将python 2.7.*放在路径中而不是3.*中,然后重新安装节点sass
npm卸载节点sass&&npm安装节点sass
对我来说很有效,如其他部分所述


因此,检查您的
python--version
可能是一个开始。

将python 2.7.*放在path中而不是3.*中,然后重新安装节点sass
npm uninstall node sass&&npm install node sass
对我来说很有效,正如其他文章中提到的那样


因此,检查您的
python--version
可能是一个开始。

这个命令的可能副本对我来说不起作用,但是使用--force的同一个命令非常有效
npm重建节点sass--force
Terminal:“我当然希望你知道你在做什么。”。我:……这个命令对我不起作用,但同样的命令——武力就像一个符咒
npm重建节点sass--force
Terminal:“我当然希望你知道你在做什么。”。我:。。。