一、错误描述
在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
3)重启电脑,输入node -v 即安装成功 (这样就不需要升级window7操作系统了 )
C:\Users\Administrator>node -vv16.15.0