Board logo

标题: Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher [打印本页]

作者: xiexie    时间: 2023-4-18 16:27     标题: Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher

nvm list
nvm use v16.20.0
更换nodejs版本,使用node v16.20.0,下载的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)设置系统操作系统环境变量绕过校验

nvm use v12

set  NODE_SKIP_PLATFORM_CHECK=1
nvm use v16
node version
显示正常,但可能会存在未知问题。





欢迎光临 PHP开发笔记 (http://phpvi.com/) Powered by Discuz! 6.1.0