今天想更換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