This shows you the differences between two versions of the page.
|Both sides previous revision Previous revision|
Admin Install lots of npm packages.
Craig Buchek Homebrew version of npm now links binaries into /usr/local/bin, so we don't need to extend $PATH.
|Line 11:||Line 11:|
|brew install node||brew install node|
|-||We'll need to add npm's bin directory to our path for any command-line tools that it installs.|
|-||NPM_BIN_PATH="$(npm -g bin)"|
|-||if ! grep "$NPM_BIN_PATH" ~/.bashrc >/dev/null ; then|
|-||echo >> ~/.bashrc ''|
|-||echo >> ~/.bashrc '# Make sure binaries from Node (npm) packages are in our path.'|
|-||echo >> ~/.bashrc "export PATH=\"\$PATH:$NPM_BIN_PATH\""|