坑1
-
问题描述:
watchman --no-pretty get-sockname returned with exit code=1,signal-null
watchman_error.jpeg
-
解决办法1(
我的问题是用此办法解决的
)- 使用
open /usr/local
命令打开local
文件夹 - 我的问题就是因为把下面两个用户权限设置成读与写权限,导致了watchman出现了权限问题,关于权限只需要执行命令
sudo chown -R
whoami/usr/local
即可,别的都不需要做
image.png
- 使用
-
解决办法2
npm r -g watchman
brew update && brew upgrade
brew uninstall watchman
brew link pcre
brew install --HEAD watchman
网友评论