建立VueJS專案後執行npm install時發生錯誤
P粉161939752
P粉161939752 2024-02-25 16:20:25
0
1
374

我剛剛安裝了 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粉161939752
P粉161939752

全部回覆(1)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!