Is there a method to use switch to Homebrew version of node when using nvm?

自闭症网瘾萝莉.ら 提交于 2019-12-11 03:09:56

问题


Lots of my packages such as heroku depends on Homebrew’s node, so I have to keep one in the system. I wonder if I can switch between nvm and Homebrew’s node so I don't have to upgrade twice.


回答1:


For temporary switch, use nvm use system

For every new shell Use nvm alias default system to use brew version.



来源:https://stackoverflow.com/questions/45625898/is-there-a-method-to-use-switch-to-homebrew-version-of-node-when-using-nvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!