我剛剛安裝了 VueJS,並嘗試建立一個專案。我按照他們的安裝和快速入門指南 VueJS Getting Started 進行操作。
> npm init vue@latest
#> cd(這裡是我的專案名稱)
#> npm install
但是,執行 > npm install
後,它會在 VSCode 終端機中傳回以下訊息:
npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! errno ERR_SOCKET_TIMEOUT npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/lodash: Socket timeout npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\alscg\AppData\Local\npm-cache\_logs22-04-07T08_54_47_537Z-debug-0.log
我該如何解決這個問題?我這樣做錯了嗎?
P粉9856865572024-02-26 10:58:52
請嘗試此鏈接,它看起來已經得到答复
npm 錯誤!嘗試取得 https://registry.npmjs.org/react-is 時回應逾時(超過 30000 毫秒)
#