Error “Cannot find module 'npmlog'” after “npm update -g”

前端 未结 9 1270
轻奢々
轻奢々 2020-12-20 11:35

I have NVM 0.30.1 and used it to install node.js v5.4.0 (with NPM 3.5.4) on Fedora 22. When I run npm update -g, I receive the following warnings:



        
9条回答
  •  死守一世寂寞
    2020-12-20 11:56

    What fixed this for me was

    sudo rm -rf /usr/local/lib/node_modules/
    

    and then re-installing node (with npm).

提交回复
热议问题