2017-02-28 2 views
2

원반을 통해 실을 설치하려고했을 때. 그래서 다음을설치 얀 'BREW 연결 노드'

My-MacBook-Pro:share gt$ brew link --overwrite node 
Linking /usr/local/Cellar/node/7.6.0... 
Error: Could not symlink share/doc/node/gdbinit 
/usr/local/share/doc/node is not writable. 
My-MacBook-Pro:share gt$ 

는/usr/local/share에 chmod를했다 덮어 쓰기 옵션을 시도

My-MacBook-Pro:share gt$ brew link node 
Linking /usr/local/Cellar/node/7.6.0... 
Error: Could not symlink bin/node 
Target /usr/local/bin/node 
already exists. You may want to remove it: 
    rm '/usr/local/bin/node' 

To force the link and overwrite all conflicting files: 
    brew link --overwrite node 

To list all files that would be deleted: 
    brew link --overwrite --dry-run node 
My-MacBook-Pro:share gt$ 

의 결과로 양조 링크 노드를 실행하는 다음과 같은 메시지

My-MacBook-Pro:share gt$ brew install yarn 
Error: You must `brew link node` before yarn can be installed 
My-MacBook-Pro:share gt$ 

있어/usr/local/lib/dtrace가 쓸 수 없다고 불평합니다.

나는 올바른 경로에 있거나 그냥 토끼 구멍에 있습니까? 원사 설치의 깔끔한 방법은 무엇입니까?

답변

1

macOS 및 일반적인 유닉스 환경에서 Yarn을 설치하는 가장 쉬운 방법 중 하나는 쉘 스크립트를 사용하는 것입니다. 터미널에 다음 코드를 실행하여 Yarn을 설치할 수 있습니다.

curl -o- -L https://yarnpkg.com/install.sh | bash