SASS尚未支持您当前的环境:Windows 64位具有不支持的运行时(93)

发布于 2025-02-11 04:35:17 字数 539 浏览 2 评论 0原文

VSC终端向我展示了

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1

我在堆栈溢出中尝试了一些解决方案:

npm rebuild node-sass

npm uninstall node-sass && npm install node-sass

与之合作,我看到有些人谈论节点版本是否支持SASS,无论是否支持SASS, 我正在使用v16.14.0它的LTS版本应该支持我猜, 我希望有人可以帮忙,谢谢

this what VSC terminal show me

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1

i tried some solutions in stack overflow:

npm rebuild node-sass

and

npm uninstall node-sass && npm install node-sass

but does't work with , i saw some people talk about node version if support sass or not,
im using v16.14.0 it's LTS version should that support i guess,
i hope someone can help and THANK YOU

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

心如狂蝶 2025-02-18 04:35:17

这几乎就像试图安装仅支持节点14的4.x分支一样。

尝试安装7.0.1(当前最新)。

npm i [email protected]

我建议您继续进行node_modules才能安全。

如果那不起作用,您可以在评论中发布整个输出吗?

It's almost like it's trying to install the 4.x branch which only supports up to Node 14.

Try installing the 7.0.1 (current latest).

npm i [email protected]

I'd recommend going ahead and wiping node_modules prior to installing just to be safe.

If that doesn't work, can you please post the entire output in the comment?

魔法唧唧 2025-02-18 04:35:17

我通过强迫Visual Studio使用我安装的节点版本而不是安装Node的VS Node:

转到Visual Studio,Tools -≫选项,项目和解决方案 - > Web软件包管理 - >外部Web工具,然后将$(PATH)移动到。\ node_modules \ .bin和上面的第二个位置和上面的$(VSINSTALSTALLEDEXTERNTERNTERTTOLLS)。重新启动视觉工作室。

找到此解决方案在这里

I fixed this issue by forcing Visual Studio to use the node version I installed instead of VS installed version of node:

Go to Visual Studio, Tools -> Options, Project and Solutions -> Web Package Management -> External Web Tools, and move the $(PATH) to the second place below .\node_modules\.bin and above $(VSInstalledExternalTools). Restart Visual Studio.

Found this solution here.

梦在深巷 2025-02-18 04:35:17

修复由于节点 - 萨斯而引起的错误:

 1. Remove "sass" and "sass-loader" from package.json
 2. rm -rf node_modules
 3. npm install
 4. npm install sass --save-dev
 5. npm install sass-loader --save-dev

某些软件包的版本在package.json中强制执行。解决方案是通过让NPM为您的操作系统建立正确的版本来重新添加它们。

Fix the errors due to node-sass:

 1. Remove "sass" and "sass-loader" from package.json
 2. rm -rf node_modules
 3. npm install
 4. npm install sass --save-dev
 5. npm install sass-loader --save-dev

The versions of some packages is enforced in package.json. The solution is to re-add them by letting npm to establish their right version for your OS.

北座城市 2025-02-18 04:35:17

我已更新了我的nodejs版本18.18,然后发生了此错误。我将WebPack与5版本的版本和7版一起使用。但是我没有SASS模块。

对我来说,解决方案是安装SASS。

npm i sass-save-dev

I was updated my nodejs version 18.18 then this error occured to me. I'm using webpack with the version of 5 and node-sass with the version of 7. But I had no sass module.

The solution for me was installing the sass.

npm i sass --save-dev

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文