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