npm ERR! Error: EACCES, mkdir '/home/user/.npm/async/0.9.0'
When i am running npm it show this error that EACCES
npm-container: updating npm dependencies -- request...
npm ERR! Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0'
npm ERR! { [Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/sagar/.npm/async/0.9.0',
npm ERR! parent: 'form-data' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command
"/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/node"
"/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/npm"
"install" "request@2.53.0"
npm ERR! cwd /home/sagar/Desktop/mymeteor/packages/npm-container/.npm/package-new-acq805
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/sagar/.npm/async/0.9.0
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0'
npm ERR! not ok code 0
I am sure this issue related to permission of directory.
what npm do its installed in the user directory
like your Ubuntu /home/username/
so you need set permission for .npm
here is the command which you can run in your terminal
sudo chown -R 'sagar' ~/.npm
sagar is your username for ubuntu
username is your ubuntu username
that's all now you can install npm succesfully
if you think this article works please comment below :)
npm-container: updating npm dependencies -- request...
npm ERR! Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0'
npm ERR! { [Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/sagar/.npm/async/0.9.0',
npm ERR! parent: 'form-data' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command
"/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/node"
"/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/npm"
"install" "request@2.53.0"
npm ERR! cwd /home/sagar/Desktop/mymeteor/packages/npm-container/.npm/package-new-acq805
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/sagar/.npm/async/0.9.0
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0'
npm ERR! not ok code 0
I am sure this issue related to permission of directory.
what npm do its installed in the user directory
like your Ubuntu /home/username/
so you need set permission for .npm
here is the command which you can run in your terminal
sudo chown -R 'sagar' ~/.npm
sagar is your username for ubuntu
username is your ubuntu username
that's all now you can install npm succesfully
if you think this article works please comment below :)
Comments
Post a Comment