Some of my node modules get installed but there are always these sort of issues on this particular linux mint machine
npm install
npm ERR! Error: EACCES, open '/home/me/.npm/semver/3.0.1/package/package.json'
npm ERR! { [Error: EACCES, open '/home/me/.npm/semver/3.0.1/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/me/.npm/semver/3.0.1/package/package.json',
npm ERR! parent: 'gulp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
UPDATE. See this answer for a better way.
You have to set correct permissions (ownership) so
npm
can access your (sub)directories with your normal user permissions:where in your case
<directory>
is/home/me
and-R
is for recursive to also change ownership of all your subdirectories, which is exactly what you want. That should fix theEACCESS
issue.Sadly the advise to run the command as
root/Administrator
is wrong here.You want to avoid running
npm
withsudo
ever, as recommended by thenpm
creator Isaac Schlueter:See here for more details.
This code fix it for me.