每當我在終端機中執行指令來啟動 NPM 時,都會收到以下錯誤:
npm ERR! npm ERR! Did you mean one of these? npm ERR! npm star # Mark your favorite packages npm ERR! npm stars # View packages marked as favorites npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SB\AppData\Local\npm-cache\_logs23-07-10T09_55_32_164Z-debug-0.log PS C:\Users\SB\Desktop\react>
將啟動命令加入到套件中的腳本物件中。建立 json 檔案並在專案根目錄中開啟 shell 或 IDE,然後執行 npm start 命令。