Error when install ganche-cli


(Adelin) #1

I wanted to install ganahe-cli software as state here https://github.com/trufflesuite/ganache-cli

I’ve got the following error:

user@user:~/lear/ethereum$ sudo npm install -g ganache-cli
Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b browserifyCompatible git://github.com/frozeman/WebSocket-Node.git /home/user/.npm/_cacache/tmp/git-clone-b1cdb88f
/home/user/.npm/_cacache/tmp/git-clone-b1cdb88f/.git: Permission denied

    at ChildProcess.exithandler (child_process.js:289:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:606:12)

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-12-02T14_29_22_074Z-debug.log

Reproduction Steps

OS: Ubuntu 16.04 - npm version: 6.4.1, node version: v10.14.1

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->