今天在新的开发环境检出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相关推荐

  1. 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& ...

  2. 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 出现 ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. 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- ...

最新文章

  1. vs2008常用操作汇总
  2. Microsoft Visual C++ 14.0 is required解决方法
  3. Spring表单的initBinder:绑定表单复杂属性
  4. transactionscope报“此操作对该事务的状态无效”问题
  5. 开源分享 Unity3d客户端与C#分布式服务端游戏框架
  6. 【转】WPF自定义控件与样式(3)-TextBox RichTextBox PasswordBox样式、水印、Label标签、功能扩展...
  7. codeforce 457DIV2 C题
  8. 虚拟机系列 | JVM类加载机制
  9. python3正式发布时间_Python3 日期和时间
  10. 向量化计算cell_吴恩达老师课程笔记系列第24节-Octave教程之向量化和作业(6)
  11. 打车界的“拼多多”?
  12. 优思学院|品质圈QCC是什么?如何有效实施?
  13. java递归遍历文件夹下所有文件
  14. STM32CubeMX下STM32单片机环境光传感器(ADC)
  15. echarts折线图 - 区域图 -如何设置填充色
  16. 如何实现一个“线程池”
  17. git提示subject >50 characters; use shorter first paragraph
  18. Lévy State-Space Models for Tracking and Intent Predictionof Highly Maneuverable Objects
  19. 反编译pbd文件中的dw,利用pb本身的功能
  20. 杨智凯推荐系统_2018年英特尔杯大学生电子设计竞赛嵌入式系统专题邀请赛评审结果.PDF...

热门文章

  1. python性能分析与优化
  2. 现代统计的思想飞跃,因果推断!
  3. 常见的视频、音频、图片文件的格式
  4. c语言魔除,菜鸟学编程(C语言版)
  5. 【SemiDrive源码分析】【X9芯片启动流程】08 - X9平台 lk 目录源码分析 之 目录介绍
  6. 基于titanic数据集介绍数据分析处理流程
  7. 天下文章一大抄,你抄我来我抄它
  8. Veusz教程(1)——导入数据
  9. linux查看磁盘是否SSD盘
  10. OpenCL与OpenACC的安装