Visual Studio Code to use node version specified by NVM

后端 未结 17 1205
渐次进展
渐次进展 2020-12-07 16:01

Is it possible for VS Code to use node version specified by NVM?

I have 6.9.2 installed locally. Even after switching to another version, from the OS X terminal (no

17条回答
  •  死守一世寂寞
    2020-12-07 16:49

    So, your nvm is configured well, but other version of node STILL keeps taking over?

    Remove all non-nvm versions of node:

    1. brew uninstall --force node (yarn will be fine without system node)
    2. Other version installed from pkg or other non-nvm method
    3. Re-login. Now, nothing can be fighting for path with nvm no matter how is shell launched.

    Note: When installing/upgrading yarn, use brew install yarn --without-node

提交回复
热议问题