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

  注:运行中可能会有风险

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM