web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

npm install :: ethereum/web3.js ERROR

Open nil3sh99 opened this issue 8 years ago • 7 comments

I am trying to install web3.js using ethereum, but its showing git remote error. Is the URL has been migrated. Help needed !!

~sudo npm install ethereum/web3.js --save npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url npm WARN addRemoteGit npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:275:12) npm WARN addRemoteGit at emitTwo (events.js:126:13) npm WARN addRemoteGit at ChildProcess.emit (events.js:214:7) npm WARN addRemoteGit at maybeClose (internal/child_process.js:925:16) npm WARN addRemoteGit at Socket.stream.socket.on (internal/child_process.js:346:11) npm WARN addRemoteGit at emitOne (events.js:116:13) npm WARN addRemoteGit at Socket.emit (events.js:211:7) npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:567:12) npm WARN addRemoteGit ethereum/web3.js resetting remote /home/nilesh/.npm/_git-remotes/git-github-com-ethereum-web3-js-git-6339a8c5 because of error: { Error: Command failed: git config --get remote.origin.url npm WARN addRemoteGit npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:275:12) npm WARN addRemoteGit at emitTwo (events.js:126:13) npm WARN addRemoteGit at ChildProcess.emit (events.js:214:7) npm WARN addRemoteGit at maybeClose (internal/child_process.js:925:16) npm WARN addRemoteGit at Socket.stream.socket.on (internal/child_process.js:346:11) npm WARN addRemoteGit at emitOne (events.js:116:13) npm WARN addRemoteGit at Socket.emit (events.js:211:7) npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:567:12) npm WARN addRemoteGit killed: false, npm WARN addRemoteGit code: 1, npm WARN addRemoteGit signal: null, npm WARN addRemoteGit cmd: 'git config --get remote.origin.url' }

nil3sh99 avatar Aug 22 '18 08:08 nil3sh99

Just do npm install web3

leonprou avatar Aug 29 '18 08:08 leonprou

Just do npm install web3

@leonprou tried it but was unsuccessful.

ateebahmed avatar Aug 30 '18 19:08 ateebahmed

Hi @nil3sh99 , like @leonprou suggested npm install web3 should work (Please refer to the readme at https://github.com/ethereum/web3.js)

@ateebahmed Could you elaborate on the issue? What operating system are you running on, also what versions of node and npm?

Some error logs would also be helpful to pin-point the exact issue you are experiencing.

huanzhang89 avatar Nov 30 '18 19:11 huanzhang89

Hi @Huanzhang89 thanks for the reply...Will try to do it again, but my schedule is lil tight right now (my high school exams are going on :P). So will be closing the issue after testing in a couple of days.

nil3sh99 avatar Dec 02 '18 10:12 nil3sh99

Hi @nil3sh99 , have you tried npm install web3 yet .? You should try to run npm install web3 with administrator privileges if you are on a windows system , and if on linux just add 'sudo' in front of it sudo npm install web3.

Sometime running these from admin privilege solve the problem

sbansal96 avatar Dec 20 '18 10:12 sbansal96

It seems like communication with git was not successful. Is there any issue with config. By the way installation via npm should work. Try npm install web3

chankruze avatar Jan 01 '19 21:01 chankruze

Closed because of the ongoing clean up of the issue list. Feel free to ask this in our gitter channel or on stackoverflow.

nivida avatar Apr 16 '19 09:04 nivida