npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm install -g ganache-cli

What I Wanted to Do

I tried:

npm install -g ganache-cli
sudo npm install -g ganache-cli

What Happened Instead

Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b browserifyCompatible git:// /home/jhouck/.npm/_cacache/tmp/git-clone-7dcd8ce3
/home/jhouck/.npm/_cacache/tmp/git-clone-7dcd8ce3/.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 (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:611:12)

npm ERR! cb() never called


-home-jhouck-eth-test-.log (38 Bytes)

$ npm --versions
<!-- paste output here -->{ npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.0.0',
  openssl: '1.1.0i \n',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '',
  zlib: '1.2.11' }
$ node -p process.platform