«   2020/06   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Archives
Today
28
Total
160,394
06-06 23:14
관리 메뉴

진규의 Playground

nodejs npm오류 -bash: /usr/local/bin/npm: No such file or directory 본문

NodeJs

nodejs npm오류 -bash: /usr/local/bin/npm: No such file or directory

humble 2016. 6. 29. 16:17

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.

'NodeJs' 카테고리의 다른 글

nodejs npm오류 -bash: /usr/local/bin/npm: No such file or directory  (0) 2016.06.29
0 Comments
댓글쓰기 폼