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.
兼容win7系统, 参考: https://nodejs.cn/api/cli/node_skip_platform_check_value.html
- 直接以管理员的身份运行命令提示符, 然后输入以下命令:
C:\Users\Administrator> set NODE_SKIP_PLATFORM_CHECK=1
- 或者打开 计算机 --> 属性 --> 高级系统设置 --> 环境变量 --> 系统变量 --> 新建