January 12, 2016

Change the installation directory of npm -g

To prevent to pollute the environment, create a local_dir then

npm config set prefix local_dir
or just edit the .npmrc
prefix=local_dir
and set $PATH to include local_dir/bin
export PATH=local_dir/bin:$PATH

No comments: