We recommend use nvm
instead of nodenv
, you can install nvm
with brew install nvm
. And then you can use it to install the version we are using.
nvm install 6.10.0
nvm use 6.10.0
node -v
If you haven't
brew install yarn
If you already have it
brew update && brew upgrade yarn
Just in case yarn and npm does not work well with each other, we clean up the older node_modules and then install with yarn. It will take a while for the first run, but I promise it will be way faster next time.
rm -rf node_modules && yarn
yarn global add [email protected]