npm을 사용하다가
-bash: /usr/local/bin/npm: No such file or directory
를 만났을때!
npm을 재설치 해야 한다.
stack overflow에서 찾은 방법
You will need to install npm
again. If you use git
, this is the easiest way:
git clone http://github.com/isaacs/npm.git
cd npm
sudo make install
요기 3줄을 통째로 복사해서 mac 터미널에 복붙하면 알아서 다시 설치된다!
Otherwise, there is an install script too:
curl http://npmjs.org/install.sh | sh
(possibly you will need to use sudo sh
instead of sh
).
Then install your module again:
sudo npm install jasmine-node -g
EDIT 23/01/2014:
Now npm comes with NodeJs itself, so just reinstall NodeJs.