Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch agent doesn't seem to be starting local-npm #2

Open
mattkime opened this issue Jul 1, 2016 · 2 comments
Open

launch agent doesn't seem to be starting local-npm #2

mattkime opened this issue Jul 1, 2016 · 2 comments

Comments

@mattkime
Copy link

mattkime commented Jul 1, 2016

i'm running 10.11.5 and the launch agent doesn't seem to be starting local-npm. local-npm works fine if i start it in the terminal manually.

any tips on debugging what might be wrong?

@nolanlawson
Copy link
Member

Yeah OS X launch agents are really hard to debug. You might look in /tmp/localnpm.out or /tmp/localnpm.err to see what's up.

@callumlocke
Copy link

callumlocke commented Sep 1, 2017

It doesn't work on macOS Sierra (10.12.5) either.

In /tmp/localnpm.err I got this:

/Users/callum.locke/.local-npm/run.sh: line 10: nvm: command not found
/Users/callum.locke/.local-npm/run.sh: line 12: pm2: command not found

I tried changing the plist to just run a shell script (like this guide) and added source /Users/callum.locke/.bashrc before the pm2 start `which local-npm` command, but for some reason it doesn't work. I still get pm2: command not found in the error log.

Nothing seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants