2

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?

Muhaimin
  • 1,643
  • 2
  • 24
  • 48

2 Answers2

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

Wez Furlong
  • 4,727
  • 1
  • 29
  • 34
  • 1
    i'm not familiar to set the permissions. Would you elaborate this? If I install any other stuff from brew, will it become normal again? – Muhaimin Jan 22 '16 at 23:51
1

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
Community
  • 1
  • 1