vue專案建立遇到的問題

长安626發表於2024-09-12
npm error code ECONNRESET
npm error syscall read
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'

超時資訊

解決辦法 切換淘寶映象:

npm config set proxy null
npm config set registry https://registry.npmmirror.com
npm create vue@latest 

執行時報錯:
npm run dev
'vite' 不是內部或外部命令,也不是可執行的程式
或批處理檔案。
處理方式: 安裝全域性vite

npm install -g vite

//進入專案中安裝
npm install
npm run dev

相關文章