[转]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 runtime (72)[app-scripts] For more information on which environments are supported please see:
[app-scripts] https://github.com/sass/node-sass/releases/tag/v4.5.0
[app-scripts]node_modules\_node-sass@4.5.0@node-sass\lib\binding.js:13
[app-scripts] throw new Error(errors.unsupportedEnvironment());
[app-scripts] ^
[app-scripts] Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)[app-scripts] For more information on which environments are supported please see:
[app-scripts] https://github.com/sass/node-sass/releases/tag/v4.5.0
[app-scripts] at module.exports (H:\workspace\angular\aa\node_modules\_node-sass@4.5.0@node-sass\lib\binding.js:13:13)
[app-scripts] at Object.<anonymous> (H:\workspace\angular\aa\node_modules\_node-sass@4.5.0@node-sass\lib\index.js:14:35)
[app-scripts] at Module._compile (internal/modules/cjs/loader.js:936:30)
[app-scripts] at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
[app-scripts] at Module.load (internal/modules/cjs/loader.js:790:32)
[app-scripts] at Function.Module._load (internal/modules/cjs/loader.js:703:12)
[app-scripts] at Module.require (internal/modules/cjs/loader.js:830:19)
[app-scripts] at require (internal/modules/cjs/helpers.js:68:18)
[app-scripts] at Object.<anonymous> (H:\workspace\angular\aa\node_modules\_@ionic_app-scripts@1.3.7@@ionic\app-scripts\dist\core\bundle-components.js:6:16)
[app-scripts] at Module._compile (internal/modules/cjs/loader.js:936:30)
环境:

node:12.9.1;
node-sass:4.13.1;
解决
尝试过网上说的各种方法:
1. 卸载重装;
2. 安装最新的;
3. 设置路径后重装
//两个set选一个尝试
set SASS_BINARY_PATH=D:\win32-x64-64_binding.node
set SASS_BINARY_PATH=D:\win32-x64-57_binding.node
npm install node-sass
都没有解决。。。很难受。
决定好好看看分析一下日志:
For more information on which environments are supported please see:
[app-scripts] https://github.com/sass/node-sass/releases/tag/v4.5.0
上面提到了去那个地址看一下:就去看一下。
由上图发现最高4.5版本的node-sass最高支持node是7;
确实由于是老项目,在node7.0.0环境能运行。
但是现在我的node是12,node-sass也是最新的4.13;
按理说没问题的!
但是报错提示却是 tag/v4.5.0
由此想到项目中的node_modules中安装的依赖还是老版本4.5.0;
去看看。。。
果然发现4.5.0
将node_modules/node-sass文件夹删除,尝试重新安装 node-sass;
安装好了后,结果还是不能运行!
Error: ENOENT: no such file or directory, scandir 'H:\dscomm\workspace\angular\shenzhen\mit-a-ga-sz\node_modules\_node-sass@4.13.1@node-sass\vendor'
去查看了一下对应的文件夹。发现真的没有这个文件 vendor
直觉告诉我,应该安装的不对!还是有问题。
重新安装:
!!!先设置一下路径
PS H:\aaz> set SASS_BINARY_PATH=D:\win32-x64-64_binding.node
PS H:\aa> cnpm install node-sass
最后运行项目没问题了!
总结:
1. 删除老的node-sass文件夹(先备份一下);
2. set SASS_BINARY_PATH=D:\win32-x64-64_binding.node
3. cnpm install node-sass
为了解决这个问题花费了好几个小时,心力交瘁。记录一下解决过程。
————————————————
版权声明:本文为CSDN博主「佛一脚」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qwe1314225/article/details/104749866
[转]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 runtime (64)
错误提示: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupporte ...
- 启动项目时出现Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)
前几天趁假期重新装了一次系统,重新安装各种配置之后再启动项目的时候就报这个错误 第一反应就是去搜这个错误怎么解决,搜来搜去基本上都是让我重新安装node-sass,但我重装node-sass的时候又出 ...
- vue项目启动报错问题解决. Module build failed: Error: Node Sass does not yet support your current environment
导入vue项目后,启动报错,异常如下: 1 error in ./src/pages/home.vue 2 Module build failed: Error: Node Sass does not ...
- taro安装使用 Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)错误
1. 安装node.js 官网下载:https://nodejs.org/en/ 下载推荐版本: 2. Npm安装慢,可以使用cnpm,安装淘宝镜像: npm install -g cnpm - ...
- Node Sass does not yet support your current environment: Windows 64-bit然如何解决,cnpm此问题解决方法
这里直接说了node sass不支持当前环境,所以可以直接删掉原来不支持本机的node sass,再重新安装就行了 删除: npm uninstall --save node-sass 安装: npm ...
- ERROR in Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
该问题说的是当前环境不支持node-sass,网上说了一下是要安装node 7一下版本才支持. 这里改使用less-loader,及less
- 打开前端工程 Node Sass does not yet support your current environment: Windows 64-bit
卸载当前sass版本,重新安装sass 打开cmd进入工程文件夹: 删除 npm uninstall --save node-sass 安装 npm install --save node-sass ...
- 【Problem】前端项目运行:Module build failed:Error Node Sass does not yet support my current environmen
我在运行renren-fast-vue前端项目时,安装完依赖cnpm install 启动服务npm run dev 出现问题. Module build failed: Error: Node Sa ...
- npm run dev运行Vue项目报错:Node Sass does not yet support your current environment
导入Vue项目后,#npm run dev 报错: error in ./src/pages/hello.vue Module build failed: Error: Node Sass does ...
- vue项目运行报错:Module bulid failed: Error: Node Sass does not yet support your current environment
出错起因: 从GitLab clone项目 --> 用 npm install 命令下载依赖包 --> #npm run dev,报错 错误截图: 解决方法: 思路:单独 i ...
随机推荐
- OpenFunction 应用系列之一: 以 Serverless 的方式实现 Kubernetes 日志告警
概述 当我们将容器的日志收集到消息服务器之后,我们该如何处理这些日志?部署一个专用的日志处理工作负载可能会耗费多余的成本,而当日志体量骤增.骤降时亦难以评估日志处理工作负载的待机数量.本文提供了一种基 ...
- C++新版本特性
C++新特性 1.C++11 中的新特性 C++11 引入了许多新特性,包括自动类型推导.lambda 表达式.右值引用等.下面介绍其中的一些重要特性. 1.1 自动类型推导(Type Inferen ...
- Java高并发,ArrayList、HashSet、HashMap不安全的集合类
首先是我们的ArrayList: 这次我们讲解的是集合的不安全,首先我们都知道ArrayList吧! List<String> list=new ArrayList<>(); ...
- 《JVM第6课》本地方法栈
1 什么是本地方法 首先要知道什么是本地方法,本地方法并不是 JVM 自己的方法,也不是 jre 里面的方法,而是指那些操作系统自己的方法(如C/C++方法),它们在操作系统目录里.可以这么理解,本地 ...
- RAC:无训练持续扩展,基于检索的目标检测器 | ECCV'24
来源:晓飞的算法工程笔记 公众号,转载请注明出处 论文: Online Learning via Memory: Retrieval-Augmented Detector Adaptation 论文地 ...
- docker新建自定义网桥,实现不同主机容器互联
不同主机间的容器网络互联,网络上的所有教程都是通过open vswitch等虚拟网桥方式实现的,但是最近本人发现可以直接通过配置网桥实现网络的互联,而不用安装配置open vswitch.在这里分享一 ...
- 轻松上云怎么操作?IoT_CLOUD之中移OneNET
最近来了很多新朋友,也经常被问:可以多讲些云平台的操作吗?当然可以!文末留言你想要了解的云平台,优先安排~ 接下来,本文将以Air780E+LuatOS作为示例,教你使用合宙IoT_CLOUD连 ...
- OpenCompass使用LawBench数据测评本地Qwen大模型
一.思维导图展示 二.OpenCompass简介 OpenCompass是一个大模型测评体系,开源.高效.同时集成CompassKit测评工具.CompassHub测评集社区,CompassRank测 ...
- CSP-J2024 T1(poker/扑克)题解
洛谷CSP-J 2024自测指路 前情提要:虽然洛谷讨论区里大多数都是倾向用哈希解决该题,但实际上可以用一些邪门小技巧来A这道题awa 先来读题. 题目中说小 P 想知道他至少得向小 S 借多少张牌, ...
- 使用 BenchmarkDotNet 对 .NET 代码进行性能基准测试
前言 在软件开发领域,性能基准测试是确保软件系统高效.稳定运行的重要环节.它可以帮助你评估应用程序的性能,了解其在不同条件下的响应时间.吞吐量.资源利用率等.通过基准测试,你可以确定系统在处理特定工作 ...