I want to install webjs so I run the below command but it is showing an error.
$ 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
packge-lock.json
file which was created where you've just executed thatnpm install
command, search forWebSocket
in it, and changehttp://github.com
togit://github.com