admin管理员组

文章数量:1534400

Windows7安装NodeJS-v14遇到的问题

从官网下载的是node-v14.15.3-win-x64.zip,在Windows7上安装完成后,执行npm 命令,报错如下图

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.

去官网查了下官方文档,可以通过设置系统操作系统环境变量绕过校验,但是运行中可能会有风险。

先尝试下设置变量,测试一下。

通过测试,通过配置环境变量,node-v14可以在Windows7环境上安装,但是有风险,建议还是选择与操作系统对应的版本安装。

本文标签: nodejs