前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x

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

作者头像
GoodTime
发布2024-03-05 15:44:38
1320
发布2024-03-05 15:44:38
举报

出现问题原因:

nodejs和node-sass版本不匹配

解决办法:

下载node-sass指定版本的nodejs

1)node-sass的节点版本支持政策

① 支持的 Node.js版本因版本而异

② 达到生命周期结束的节点版本将在每个 node-sass 版本(主要、次要)中从支持中删除,具体地址:https://github.com/nodejs/Release

③ 根据上标下载对应版本的nodejs

下载地址:https://nodejs.org/en/download/releases/​​​​

2)安装

npm中安装

代码语言:javascript
复制
npm install node-sass

在 Windows 系统上安装需要先安装node-gyp

代码语言:javascript
复制
npm install -g node-gyp

在国内镜像安装

代码语言:javascript
复制
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
npm install node-sass

node-sass在npm上的地址为:https://www.npmjs.com/package/node-sass

以上就是Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x的介绍,做此记录,如有帮助,欢迎点赞关注收藏!
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-03-05,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 出现问题原因:
  • 解决办法:
    • 1)node-sass的节点版本支持政策
      • 2)安装
        • 以上就是Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x的介绍,做此记录,如有帮助,欢迎点赞关注收藏!
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档