美文网首页
安装nvm 以后重新打开控制台的提示 2021-04-22

安装nvm 以后重新打开控制台的提示 2021-04-22

作者: daybreakcold | 来源:发表于2021-04-22 15:35 被阅读0次

    nvm is not compatible with the npm config “prefix” option:

    $ nvm use v4.2.4
    
    nvm is not compatible with the npm config "prefix" option: 
       currently set to "/Users/z/.npm-global"
    Run `npm config delete prefix` or `nvm use --delete-prefix v4.2.4` to unset it.
    

    Delete and Reset the prefix

    $ npm config delete prefix 
    $ npm config set prefix $NVM_DIR/versions/node/v6.11.1
    

    https://stackoverflow.com/questions/34718528/nvm-is-not-compatible-with-the-npm-config-prefix-option

    相关文章

      网友评论

          本文标题:安装nvm 以后重新打开控制台的提示 2021-04-22

          本文链接:https://www.haomeiwen.com/subject/feqfrltx.html