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

今天想更换nodejs版本,使用 node v14.15.4,下载的zip包,设置完环境变量,命令行下执行 node -v 检查是否安装成功,提示如下内容:

>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)设置 系统环境变量 NODE_SKIP_PLATFORM_CHECK=1 ,绕过校验
D:>set  NODE_SKIP_PLATFORM_CHECK=1

D:>node -v
v14.15.4

可以看到之前出现的警告信息没有了!

人们总是在追求更快、更强。更强的硬件配置出来时,总会有更加耗费资源的程序随之而来。这些程序表面上功能更加强大,也贪婪地吸允着更多的算力、内存以及存储空间。但是它的操作体验并没有质的提升。

整理以前的博客,发现我自己并不是一个追求新潮的程序员。总是在试图保持过去的编程习惯,还在勉强和费力地使用着以前的电脑,以及挣扎着为了实现某个新功能不得不被迫升级软件。