1

This message shows up when I try to install truffle

npm install -g truffle
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/janinebarnard/.npm/_logs/2018-

3 Answers 3

1

Try this command sudo npm install -g truffle, installation is failing because of an issue related to administrator permission

1
  • I tried that as well put it gives me now password with a key at the end. Commented Jun 9, 2018 at 4:20
0

i had this problema and solve it with chmod 777 in all files

0

I experienced this issue on [email protected], upgrading npm to the latest version resolve the issue:

npm install -g npm@latest
sudo npm install truffle -g

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.