npm update check failed

前端 未结 14 1093
太阳男子
太阳男子 2020-11-30 05:47

Last night I tried to update my node and npm, it seemed to have been successful, however ever since then I have been getting this same error any time I try and run any npm c

14条回答
  •  天命终不由人
    2020-11-30 06:03

    If the user does not have sudo rights in a unix environment, remember the user name you want to issue the command with (-> USER). Then use

    su

    Enter your root password. Then

    chown -R USER:USER .config

    Other .config folders that were created using root are also changed. In my case changing ~/.config/nvws owner did the job (chown -R THE USER YOU USE NPM WITH:THE USER YOU USE NPM WITH .config/nvm)

提交回复
热议问题