Set npm global modules directory

  1. using npm config:npm config set prefix '~/.npm-global'
  2. using env vars: NPM_CONFIG_PREFIX=~/.npm-global
    

Leave a Reply