Failed to compile.
./node_modules/vm2/lib/resolver-compat.js
Module not found: Can't resolve 'async_hooks' in \node_modules\vm2\lib'
Error from chokidar (E:\node_modules): Error: EBUSY: resource busy or locked, lstat 'E:\pagefile.sys'
Error from chokidar (E:\node_modules): Error: EBUSY: resource busy or locked, lstat 'E:\pagefile.sys'
當我嘗試運行我的應用程式(react)時,突然出現了這個錯誤,甚至重新安裝節點模塊也不起作用,我也嘗試重新安裝節點和 webpack,但都沒有成功。
uj5u.com熱心網友回復:
需要詢問您是否已下載該專案或您是否已徹底完成?如果您在專案目錄中下載了(由于 package.json 的存在),您可以簡單地:
npm i
該命令將安裝 package.json 檔案中表示的所有具有相同版本的包。
如果這個命令沒有幫助你,你可以做另一件事:
使用以下命令全域更新 NPM:
npm install -g npm@latest
安裝另一個版本的“async_hooks”。不幸的是,該軟體包只有一個版本。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/444956.html
