错误 watchman--当 运行 npm start 时没有漂亮的 get-sockname

ERROR watchman--no-pretty get-sockname when run npm start

我知道这个错误已经解决了。我按照所有内容卸载然后重新安装。更新和升级。 运行 npm r -g watchman...但是尝试 运行 npm start

时都失败了

我怀疑是因为我在 macbook 上的 LaunchAgents 被打断了。这是我在 运行

时得到的

ls -ld ~/Library/LaunchAgents

lrwxr-xr-x  1 infacq  staff  46 Aug 16 11:03 /Users/infacq/Library/LaunchAgents -> /usr/local/opt/mysql/homebrew.mxcl.mysql.plist

有人经历过吗?

我认为你需要:

rm /Users/infacq/Library/LaunchAgents

您可能还需要:

mkdir /Users/infacq/Library/LaunchAgents

但您可能需要修复该目录的权限,以便其他人无法写入该目录

同问题

尝试重新安装守望者:

npm r -g watchman 
brew update && brew upgrade
brew install watchman

我也必须重新安装 libtool

brew reinstall libtool --universal && brew unlink libtool && brew link libtool

如果您在尝试执行以下操作时在 libtool 过程中遇到权限错误

brew link pcre 

Error: Could not symlink share/man/man3/pcre.3
/usr/local/share/man/man3 is not writable.

然后您需要按照概述更新您的权限here

sudo chown -R `whoami` /usr/local