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

error in installing web3 #1576

Closed
adarshavaidya opened this issue Apr 23, 2018 · 1 comment
Closed

error in installing web3 #1576

adarshavaidya opened this issue Apr 23, 2018 · 1 comment

Comments

@adarshavaidya
Copy link

I've tried to install web3 using npm install web3 but the error occurring has no solution anywhere .

npm ERR! path /home/adarsh/.npm/_logs/2018-03-23T09_19_51_835Z-debug.log
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/home/adarsh/.npm/_logs/2018-03-23T09_19_51_835Z-debug.log'
npm ERR! at Object.fs.unlinkSync (fs.js:1085:18)
npm ERR! at Function.rimrafSync [as sync] (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:306:17)
npm ERR! at /usr/local/lib/node_modules/npm/lib/npm.js:328:20
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob. (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:151:7)
npm ERR! at Glob.emit (events.js:180:13)
npm ERR! at Glob._finish (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:197:8)
npm ERR! at done (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:182:14)
npm ERR! at Glob._processReaddir2 (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:434:12)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:371:17
npm ERR! at RES (/usr/local/lib/node_modules/npm/node_modules/inflight/inflight.js:31:16)
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob._readdirEntries (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:578:10)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:555:12
npm ERR! at go$readdir$cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:149:14)
npm ERR! at FSReqWrap.oncomplete (fs.js:153:20)
npm ERR! { Error: EACCES: permission denied, unlink '/home/adarsh/.npm/_logs/2018-03-23T09_19_51_835Z-debug.log'
npm ERR! at Object.fs.unlinkSync (fs.js:1085:18)
npm ERR! at Function.rimrafSync [as sync] (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:306:17)
npm ERR! at /usr/local/lib/node_modules/npm/lib/npm.js:328:20
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob. (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:151:7)
npm ERR! at Glob.emit (events.js:180:13)
npm ERR! at Glob._finish (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:197:8)
npm ERR! at done (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:182:14)
npm ERR! at Glob._processReaddir2 (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:434:12)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:371:17
npm ERR! at RES (/usr/local/lib/node_modules/npm/node_modules/inflight/inflight.js:31:16)
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob._readdirEntries (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:578:10)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:555:12
npm ERR! at go$readdir$cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:149:14)
npm ERR! at FSReqWrap.oncomplete (fs.js:153:20)
npm ERR! stack: 'Error: EACCES: permission denied, unlink '/home/adarsh/.npm/_logs/2018-03-23T09_19_51_835Z-debug.log'\n at Object.fs.unlinkSync (fs.js:1085:18)\n at Function.rimrafSync [as sync] (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:306:17)\n at /usr/local/lib/node_modules/npm/lib/npm.js:328:20\n at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)\n at Glob. (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:151:7)\n at Glob.emit (events.js:180:13)\n at Glob._finish (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:197:8)\n at done (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:182:14)\n at Glob._processReaddir2 (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:434:12)\n at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:371:17\n at RES (/usr/local/lib/node_modules/npm/node_modules/inflight/inflight.js:31:16)\n at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)\n at Glob._readdirEntries (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:578:10)\n at /usr/local/lib/node_modules/npm/node_modules/glob/glob.js:555:12\n at go$readdir$cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:149:14)\n at FSReqWrap.oncomplete (fs.js:153:20)',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/home/adarsh/.npm/_logs/2018-03-23T09_19_51_835Z-debug.log' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

i tried using sudo too and the result was this
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/ethereum/web3.js.git /home/adarsh/.npm/_cacache/tmp/git-clone-ffbb3fd4
npm ERR! /home/adarsh/.npm/_cacache/tmp/git-clone-ffbb3fd4/.git: Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /home/adarsh/.npm/_logs/2018-04-23T09_18_38_905Z-debug.log
do send suggestions .

@nivida
Copy link
Contributor

nivida commented Aug 9, 2018

I think your environment is not configured correctly please ask this question on stackoverflow.

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

2 participants