npm install 報錯解決方法

2021-10-23 19:03:06 字數 916 閱讀 4099

我相信很多人在執行npm install的時候都遇到各種各樣的問題,比如以下錯誤:

error cb() never called!

error this is an error with npm itself. please report this error at:

error

解決方法如下:

一、首先要以管理員模式開啟cmd清除你的npm快取 :

npm cache clean -f

二、清除完快取後,安裝最新版本的node helper:

npm install -g n --force
三、再執行npm install

npm install 安裝報錯

error    'error: eperm: operation not permitted, lstat ,

44382 error   errno: -4048,

44382 error   code: 'eperm',

44382 error   syscall: 'lstat',

error the operation was rejected by your operating system.

error it's possible that the file was already in use (by a text editor or antivirus),

error or that you lack permissions to access it.

網上其實很多解決方法,我試了都無果,最後找到原因是因為nodejs開啟了多個程序導致彼此占用資源引起,結束所有的nodejs程序,重新執行npm install 就可以了。

npm install 安裝報錯解決辦法

解決 安裝 chromedriver 即可 npm install chromedriver chromedriver cdnurl 刪除npmrc檔案 注意 不是nodejs安裝目錄npm模組下的那個npmrc檔案,而是在c users 下的.npmrc檔案 直接用命令清理 控制台輸入 npm c...

輸入 npm install 報錯

錯誤資訊如下 npm warn deprecated browserslist 2.11.3 browserslist 2 could fail on reading browserslist 3.0 config used in other tools.npm err unexpected end...

npm install 報錯 python相關

設定啟動python的安裝位置,電腦多個python時適用 npm config set python c users administrator.windows build tools python27 python.exe node sass npm rebuild node sass 重構一下...