Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher

今天想更换nodejs版本,使用node v14.15.4,下载的zip包,设置完环境变量,检查是否安装成功

>node -v
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
unsupported platforms will not be fixed.

问题原因:

  当前系统是Windows 7

  从node v14.x版本开始,需要Windows 8.1或更高版本

解决的方法:

  (1)使用 node v12

  (2)设置系统操作系统环境变量绕过校验

D:\>set  NODE_SKIP_PLATFORM_CHECK=1

D:\>node -v
v14.15.4

  注:运行中可能会有风险

 

posted @   慕尘  阅读(4477)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2016-01-27 使用redis作为session的存储方式
点击右上角即可分享
微信分享提示