天天看點

npm install報錯error 404 Not Found - GET https://registry.npm.taobao.org/@xt1.問題場景: 2.解決辦法

1.問題場景:

vue cli3老項目重新開機,npm install安裝報錯。

錯誤資訊:

4327 error code E404

4328 error 404 Not Found - GET https://registry.npm.taobao.org/@xtuc/long/-/long-4.2.1.tgz - [not_found] document not found

npm install報錯error 404 Not Found - GET https://registry.npm.taobao.org/@xt1.問題場景: 2.解決辦法

 2.解決辦法

2.1先檢視有沒有設定代理

執行下面的指令

npm config get proxy
npm config get https-proxy
           

如果傳回的不是null,則執行下面對指令清理;如果傳回的是null,直接進入到第2步。

npm config set https-proxy null
npm config set proxy null
           

2.2重新設定

npm config set registry https://registry.npmjs.org/
           

到這裡就完成了。執行npm install安裝成功。

繼續閱讀