因?yàn)榘惭b項(xiàng)目依賴(lài)一直報(bào)錯(cuò),往上查到說(shuō)可以下載一個(gè)node版本控制工具,我選擇了"n",但是輸入命令行 npm install -g n一直報(bào)以下錯(cuò)誤,
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@10.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yxy\AppData\Roaming\npm-cache_logs\2024-10-31T11_28_47_727Z-debug.log

報(bào)錯(cuò)圖片.png
解決辦法:
npm install -g n --force
成功?。?!