前兩天使用 npm 進行專案初始化一切正常,今天進行相同操作報錯無法執行。
building fresh packages : esbuild command filed.
82795 verbose stack Error: esbuild@0.8.57 postinstall: `node install.js`
82795 verbose stack Exit status 1
82795 verbose stack at EventEmitter.<anonymous> (d:\tools\nvm\v14.8.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
82795 verbose stack at EventEmitter.emit (events.js:314:20)
82795 verbose stack at ChildProcess.<anonymous> (d:\tools\nvm\v14.8.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
82795 verbose stack at ChildProcess.emit (events.js:314:20)
82795 verbose stack at maybeClose (internal/child_process.js:1051:16)
82795 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
82796 verbose pkgid esbuild@0.8.57
82797 verbose cwd D:\tools\phpstudy\WWW\console\integral
82798 verbose Windows_NT 10.0.17763
82799 verbose argv "d:\\tools\\nodejs\\node.exe" "d:\\tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
82800 verbose node v14.8.0
82801 verbose npm v6.14.7
82802 error code ELIFECYCLE
82803 error errno 1
82804 error esbuild@0.8.57 postinstall: `node install.js`
82804 error Exit status 1
82805 error Failed at the esbuild@0.8.57 postinstall script.
82805 error This is probably not a problem with npm. There is likely additional logging output above.
82806 verbose exit [ 1, true ]
查詢各種版本資訊,以為是依賴升級導致不相容,無果
專案執行無法啟動一直Starting the development server…
百度到這篇文章:原文地址,360可能會攔截,感謝作者,一語驚醒夢中人。檢視自己的360:
內心一萬隻草泥馬!!!!!!
總結
之所以前兩天沒問題,是因為今天 6.18,開啟京東購物沒關閉,觸發了 360 的網購模式,找了半天也沒找到設定的地方,記錄下,避免以後再遇坑。
本作品採用《CC 協議》,轉載必須註明作者和本文連結