解决Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
今天在新的开发环境检出nodejs的前端项目,运行npm run serve启动项目后报:
> Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
原因:不清楚,可能是因为node-sass与node版本的问题,但是是node-sass安装失败导致的,需成功安装node-sass
处理:
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
我使用的是这个命令解决的
参考:(40条消息) node-sass安装失败解决方法,终有一款适合我们_小刘先生很努力的博客-CSDN博客_node-sass安装失败
安装node-sass报错,提示node-gyp -v 与node版本不符合解决办法
(40条消息) 安装node-sass报错,提示node-gyp -v 与node版本不符合解决办法_目标前端大佬的博客-CSDN博客
(以下摘自参考文章:https://blog.csdn.net/brenda2314/article/details/105584724)
npm uninstall node-sass
npm install node-sass
遂又遇到:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
原因:缺少python环境 (可参考npm install - gyp ERR! find Python 解决方案)
处理:
第一种方式:
安装Python及环境变量配置
一定要安装python2.7的版本
环境变量安装可以参考:http://blog.csdn.net/lyj_viviani/article/details/51763101
如果第一种方式不行可以试试第二种方式。
第二种方式:
运行下面代码(以管理员身份运行cmd执行)
npm install --global --production windows-build-tools
遂遇到
Unexpected end of JSON input while parsing near **********
解决执行: `npm cache clean --force`
再次尝试,终于成功
最后再重新执行
npm uninstall node-sass
npm install node-sass
至此解决
解决Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x相关推荐
- Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x
Node Sass could not find a binding 错误示例 error in ./src/components/BaseLayout.vue?vue&type=style& ...
- Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js
> Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 出现 ...
- Node Sass could not find a binding for your current environment
typescript引入css直接报错: Node Sass could not find a binding for your current environment 具体错误如下: ERROR i ...
- Node Sass does not yet support your current environment: Windows 64-bit然如何解决,cnpm此问题解决方法
Node Sass does not yet support your current environment: Windows 64-bit然如何解决,cnpm此问题解决方法 参考文章: (1)No ...
- vue报错:Module build failed: Error: Node Sass does not yet support your current environment: Windows
Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit ...
- Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt
重新搭建开发环境,运行报错,日志如下: Error: Node Sass does not yet support your current environment: Windows 64-bit w ...
- Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupport..
**启动项目时出现Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsuppo ...
- node - Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt
前言 该问题多数出现在 npm install 安装依赖与 npm run dev/server 运行项目时,根本原因就是 node-sass 版本问题. 终端完整报错信息如下: # SEO Synt ...
- vue 运行报错Module build failed: Error: Node Sass does not yet support your current environment: Windows
卸载node-sass在安装 #1.卸载node-sass npm uninstall --save node-sass #2.安装node-sass npm install --save node- ...
最新文章
- vs2008常用操作汇总
- Microsoft Visual C++ 14.0 is required解决方法
- Spring表单的initBinder:绑定表单复杂属性
- transactionscope报“此操作对该事务的状态无效”问题
- 开源分享 Unity3d客户端与C#分布式服务端游戏框架
- 【转】WPF自定义控件与样式(3)-TextBox RichTextBox PasswordBox样式、水印、Label标签、功能扩展...
- codeforce 457DIV2 C题
- 虚拟机系列 | JVM类加载机制
- python3正式发布时间_Python3 日期和时间
- 向量化计算cell_吴恩达老师课程笔记系列第24节-Octave教程之向量化和作业(6)
- 打车界的“拼多多”?
- 优思学院|品质圈QCC是什么?如何有效实施?
- java递归遍历文件夹下所有文件
- STM32CubeMX下STM32单片机环境光传感器(ADC)
- echarts折线图 - 区域图 -如何设置填充色
- 如何实现一个“线程池”
- git提示subject >50 characters; use shorter first paragraph
- Lévy State-Space Models for Tracking and Intent Predictionof Highly Maneuverable Objects
- 反编译pbd文件中的dw,利用pb本身的功能
- 杨智凯推荐系统_2018年英特尔杯大学生电子设计竞赛嵌入式系统专题邀请赛评审结果.PDF...