상현에 하루하루
개발자의 하루

homebrew Node.js install 오류

( 업데이트: )
mymac:~$ brew link node
Linking /usr/local/Cellar/node/0.12.6... 
Error: Could not symlink share/systemtap/tapset/node.stp
Target /usr/local/share/systemtap/tapset/node.stp
already exists. You may want to remove it:
  rm '/usr/local/share/systemtap/tapset/node.stp'Code language: Bash (bash)

What worked for me:

cd /usr/local/share
sudo chown -R : systemtap (Did 1 & 2 for /usr/local too)
Above steps were failing. Went to next answer. Tried;

ls -al /usr/local/share/systemtap/ which throwed a ‘Not found error.’

Then: brew link node was throwing an error. So I did:

  1. sudo rm -rf /usr/local/lib/node_modules
  2. brew postinstall node -v
  3. And at last brew link node
  4. node -v 🙂

So basically I removed all node_modules/ folders and redid everything.


brew 사용 중 발생하는 다양한 에러 처리방법

brew doctorCode language: Bash (bash)

brew doctor 커맨드로 지시사항을 잘 읽고 지시대로 처방하고 다시 작업을 수행합니다.

brew link node시 리크 에러 처리방법

Cloud not symlink share/doc/node/gbinitCode language: Bash (bash)

위와 같은 에러가 발생하는 경우 /usr/local/share/doc/node/ 디렉토리의 소유자가 현재 시스템 사용자가 아니기 때문일 가능성이 높습니다.

다음 명령어를 통해 해당 디렉토리의 소유자 권한을 변경하고, 다시 link 명령어를 입력하면 정상적으로 링크 작업을 수행 할 수 있습니다.

sudo chown -R {사용자명} /usr/local/share/doc/node/Code language: Bash (bash)