您当前的位置: 首页 >  windows

王佳斌

暂无认证

  • 1浏览

    0关注

    821博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

node - Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt

王佳斌 发布时间:2022-04-15 11:10:31 ,浏览量:1

前言

该问题多数出现在 npm install 安装依赖与 npm run dev/server 运行项目时,根本原因就是 node-sass 版本问题。

终端完整报错信息如下:

# SEO
Syntax Error: 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

在这里插入图片描述

解决方案

注意:必须在项目根目录,打开终端执行如下所有操作。

首先,把 node-sass 卸载掉,执行如下命令:

cnpm u node-sass

如果卸载报错(或成功),请直接忽略,接着执行如下命令:

cnpm i --save node-sass	
写在后面

为了更精准解决问题,我本地 node / npm 版本如下: 在这里插入图片描述

关注
打赏
1665568777
查看更多评论
立即登录/注册

微信扫码登录

0.0391s