天天看點

Vue 啟動項目安裝 依賴包的 npm install 報錯資訊為A complete log of this run can be found in: /2022-09-04TO5 0325380Z

Vue 啟動項目安裝 依賴包的 npm install 報錯資訊為A complete log of this run can be found in: /2022-09-04TO5 0325380Z-debug-0.log 錯誤

A complete log of this run can be found in: /2022-09-04TO5 0325380Z-debug-0.log

這個錯誤導緻了 在使用 npm install 的時候 ,依賴包安裝不了,

上面錯誤這邊總結的二個原因,

第一個原因 如果你的項目裡面有依賴包了,你想通過npm install 的方式 重新安裝,并且覆寫他的話就會報錯

Vue 啟動項目安裝 依賴包的 npm install 報錯資訊為A complete log of this run can be found in: /2022-09-04TO5 0325380Z

如上圖,因為你的安裝日志資訊裡面顯示已經安裝了,這個時候,就會找不到要安裝的日志資訊安裝了,

要想重新安裝就要删除 這個node_modeules這個檔案夾,後面重新安裝,安裝的時候你的項目路徑要正确

cd 項目名,把路徑改為項目根目錄再運作項目,

再npm install 安裝依賴

第二個原因:

你使用npm install的時候 項目下面也沒有安裝node_modeules這個檔案夾,

也報這個日志問題

解決方法:

cd 到這個報錯的日志目錄,删除日志檔案

Vue 啟動項目安裝 依賴包的 npm install 報錯資訊為A complete log of this run can be found in: /2022-09-04TO5 0325380Z

後面

cd 項目名,把路徑改為項目根目錄再運作項目,