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

微笑、不失礼 提交于 2019-12-10 10:37:28

问题


i know this error has been solved. I followed everything uninstall then reinstall. update and upgrade. run npm r -g watchman... but all fail when try to run npm start

I suspect because my LaunchAgents on macbook has been interrupted. this is what I get when run

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

anyone experience this?


回答1:


I think you need to:

rm /Users/infacq/Library/LaunchAgents

You may also need to:

mkdir /Users/infacq/Library/LaunchAgents

but you may need to fix the permissions on that dir so that others cannot write to it




回答2:


Same as the issue here

Try reinstalling watchman:

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

I had to reinstall libtool as well

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

If you get a permission error during the libtool process while trying to do the following

brew link pcre 

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

Then you'll need to update your permissions as outlined here

sudo chown -R `whoami` /usr/local


来源:https://stackoverflow.com/questions/34912523/error-watchman-no-pretty-get-sockname-when-run-npm-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!