首页

解决window7安装nodejs高版本“Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher..”报错

标签:nodejs报错     发布时间:2023-08-07   

一、错误描述

在window7安装配置nodejs高版本(如 node-v16.15.0-x64版本),输入 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”

PS D:\demo\jeecg\jeecgboot-vue3-master> node -vNode.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 thischeck, but Node.js might not execute correctly. Any issues encountered onunsupported platforms will not be fixed.PS D:\demo\jeecg\jeecgboot-vue3-master>

二、解决方法

1)下载解压 node-v16.15.0-x64版本并覆盖低版本的目录(如node-v8.12.0-win-x64

2)在 “环境变量”设置 NODE_SKIP_PLATFORM_CHECK=1

813-4_2023-08-10_19-37-20副本.jpg

3)重启电脑,输入node  -v 即安装成功 (这样就不需要升级window7操作系统了 )

C:\Users\Administrator>node -vv16.15.0

 

@b@
  • ◆ 相关内容