Nodemon: EACCES error on Mac for nodemon file

Created on 29 Oct 2015  Â·  9Comments  Â·  Source: remy/nodemon

I can run nodemon with sudo to avoid this problem

just want to see if it's something you haven't seen before

Error: EACCES, permission denied '/Users/amills001c/.config/configstore/update-notifier-nodemon.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.create.all.get (/usr/local/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/nodemon/node_modules/update-notifier/index.js:34:17)
    at module.exports (/usr/local/lib/node_modules/nodemon/node_modules/update-notifier/index.js:123:23)
    at Object.<anonymous> (/usr/local/lib/node_modules/nodemon/bin/nodemon.js:15:27)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Most helpful comment

It is an ownership problem. Try running the command with 'sudo'.

All 9 comments

This appears to be an npm problem when installing packages globally. You should check the fixing npm permissions section on their site.

thanks I will investigate appreciate the feedback

After going through option 2 on the fixing npm permissions section and reinstalling nodemon, I still receive this error. Is there any other way to deal with this?

the way I have been dealing with it is to use nodemon with Gulp, via the
gulp-nodemon plugin

otherwise I am still having the issue as the person above
On Dec 11, 2015 8:51 AM, "ctaorminainn" [email protected] wrote:

After going through option 2 on the fixing npm permissions section
https://docs.npmjs.com/getting-started/fixing-npm-permissions and
reinstalling nodemon, I still receive this error. Is there any other way to
deal with this?

—
Reply to this email directly or view it on GitHub
https://github.com/remy/nodemon/issues/712#issuecomment-163988399.

I was just able to get around the issue by changing the ownership on the file manually using the following

sudo chown youruseraccount:admin pathtocontainingfolder/.config/configstore/update-notifier-nodemon.json

It is an ownership problem. Try running the command with 'sudo'.

@meghanadasigi :+1:

Thank you @meghanadasigi

sudo npm install -g nodemon

this one worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Exeteres picture Exeteres  Â·  4Comments

jonerer picture jonerer  Â·  4Comments

ehmicky picture ehmicky  Â·  4Comments

Mohammad-Quanit picture Mohammad-Quanit  Â·  5Comments

olalonde picture olalonde  Â·  3Comments