I go to ~/tmp
when I do npm install eslint
- on one system
it's installed ~/.nvm/versions/node/v10.17.0/lib/node_modules/eslint
(and it's found via which eslint because ~/.nvm/.. is included in my PATH)
- on another system
it's installed
~/tmp/node_modules/eslintwhere I'm running thenpm installcommand
Both systems have nvm, and both have nvm setup script in the zshrc file
export NVM_DIR="/Users/eugenekim/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm