Web3.js: Web3 js installation error

Created on 18 Sep 2019  Â·  8Comments  Â·  Source: ChainSafe/web3.js

I want to install webjs so I run the below command but it is showing an error on Ubuntu OS.

$ sudo npm install -g web3

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nithin/.npm/_logs/2019-09-18T09_41_14_857Z-debug.log
1.x bug dependencies

All 8 comments

@nivida I have the same issue

Could not install from "node_modules/web3-providers-ws/websocket@github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e" as it does not contain a package.json file.

Works fine with yarn though.! weird

i have the same issue, both with npm and yarn. on win10

@nivida

I got similar issue as others, when trying to install web3 using npm i got:

14390 verbose node v10.16.3
14391 verbose npm v6.11.2
14392 error code ENOENT
14393 error syscall spawn git
14394 error path git
14395 error errno ENOENT
14396 error enoent Error while executing:
14396 error enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git
14396 error enoent
14396 error enoent
14396 error enoent spawn git ENOENT
14397 error enoent This is related to npm not being able to find a file.
14398 verbose exit [ 1, true ]

Thanks for opening this issue! We will remove the GitHub dependency as soon as possible. But be sure the required tools (e.g.: git) are installed on your PC and the permissions are defined correctly.

I want to install webjs so I run the below command but it is showing an error on Ubuntu OS.

$ sudo npm install -g web3

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nithin/.npm/_logs/2019-09-18T09_41_14_857Z-debug.log

Did you issue get resolve
i am getting same error need your help????

I want to install webjs so I run the below command but it is showing an error on Ubuntu OS.

$ sudo npm install -g web3

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nithin/.npm/_logs/2019-09-18T09_41_14_857Z-debug.log

Did you issue get resolve
i am getting same error need your help????

Hi, yes we did. That version had git as dependency

In order to resolve this issue we installed git for windows from here
https://git-scm.com/download/win or here https://gitforwindows.org/

Thank you Bro.....

On Sun, 27 Oct 2019 at 10:19, Stanislav Simunec notifications@github.com
wrote:

I want to install webjs so I run the below command but it is showing an
error on Ubuntu OS.

$ sudo npm install -g web3

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nithin/.npm/_logs/2019-09-18T09_41_14_857Z-debug.log

Did you issue get resolve
i am getting same error need your help????

Hi, yes we did. That version had git as dependency

In order to resolve this issue we installed git for windows from here
https://git-scm.com/download/win or here https://gitforwindows.org/

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ethereum/web3.js/issues/3071?email_source=notifications&email_token=ANKHXCIRG3WWHDE6GCTUJJDQQVMITA5CNFSM4IX542LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECK26LA#issuecomment-546680620,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANKHXCJMF2N2DPMUEUV2AETQQVMITANCNFSM4IX542LA
.

Was this page helpful?
0 / 5 - 0 ratings