ubuntu安装npm(npm install)时报错:run `npm audit fix` to fix them, or `npm audit` for details
生活随笔
收集整理的這篇文章主要介紹了
ubuntu安装npm(npm install)时报错:run `npm audit fix` to fix them, or `npm audit` for details
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
主要還是安裝權限問題,最好先切換到root用戶下,再執行指令(root用戶下不用加sudo)
執行npm install,然后還報錯就用npm audit fix,還報錯就npm audit fix --force,再執行npm install,再不行就看參考文章里的解決辦法
參考解決辦法1:解決npm安裝時出現run npm audit fix to fix them, or npm audit for details
參考解決辦法2:npm audit fix 解決方法
淘寶鏡像源會自動修復,然后下載相關依賴包。
使用nrm use taobao,nrm如果沒有安裝,就使用npm i -g nrm,然后再使用nrm use taobao
再使用npm i 安裝一遍所有依賴包,這時候沒下載的會自動下載,問題解決。
總結
以上是生活随笔為你收集整理的ubuntu安装npm(npm install)时报错:run `npm audit fix` to fix them, or `npm audit` for details的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu apt-get指令和apt
- 下一篇: nodejs zip压缩版安装与配置