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

fs: missing callback Error: ENOENT, unlink '/etc/prey/prey.conf' #79

Closed
blackjid opened this issue Jan 30, 2015 · 7 comments
Closed

fs: missing callback Error: ENOENT, unlink '/etc/prey/prey.conf' #79

blackjid opened this issue Jan 30, 2015 · 7 comments

Comments

@blackjid
Copy link

After installing prey with npm install -g prey on my MBP osx 10.10, tried to configure it but I'm getting this...any idea?

prey config account setup
Error! Oops. Seems you don't have write permissions. Try running with sudo.
fs: missing callback Error: ENOENT, unlink '/etc/prey/prey.conf'

I also tried with sudo.

@mauricioschneider
Copy link
Contributor

You have to run it with sudo : sudo prey config account setup, since the regular user doesn't have permissions to write the config file.

@blackjid
Copy link
Author

I tried with sudo... I get the same error...

@mauricioschneider
Copy link
Contributor

Weird. For OS X I recommend you using our installer.

@blackjid
Copy link
Author

Ok, I got it...
I installed prey without sudo, because I'm running nodenv and a don't wont node packages installed with sudo....

But I miss a message that sais that as I was running with an unprivileged user, I should run a script sudo prey config hooks post_install

After that I can run sudo prey config account setup and it seams to be working fine now.

@blackjid
Copy link
Author

What's the difference between installing with npm and with the pkg installer?

@mauricioschneider
Copy link
Contributor

The installer allows to have multiple versions of Prey installer, while the npm package won't. Also, the pkg installer is a more straightforward process.

@pmichaeljones
Copy link

pmichaeljones commented Nov 28, 2019

Can I reopen this issue? Trying to install Prey after upgrading to Catalina.

Screen Shot 2019-11-28 at 8 22 56 AM

Screen Shot 2019-11-28 at 8 23 10 AM

Screen Shot 2019-11-28 at 8 23 26 AM

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