npm install cb() never called!

I’ve downloaded a react project from github and tried to install it’s dependencies with npm install and this is the result:
npm install
npm WARN deprecated babel@6.23.0: In 6.x, the babel package has been deprecated in favor of babel-cli. Check https://opencollective.com/babel to support the Babel maintainers
Unhandled rejection Error: EACCES: permission denied, open β€˜/home/kseikyo/.npm/_cacache/index-v5/d3/b3/4e89253e383ec23194067bcd36be5ff547db7d1bf483a91b8d36ac98b5a1’

Unhandled rejection Error: EACCES: permission denied, open β€˜/home/kseikyo/.npm/_cacache/index-v5/6b/f4/9e845476c976b8f9b91dc89b232bf40c00b5ff1d1bd141e780de532e76c0’

Unhandled rejection Error: EACCES: permission denied, rename β€˜/home/kseikyo/.npm/_cacache/tmp/240458e9’ -> β€˜/home/kseikyo/.npm/_cacache/content-v2/sha512/fb/50/beb0dce36ce8fa8bb7e80a27604e099fee4d55a1deac57c52556a2f219414eaea19a31f4d01713516b7be97405c0fb76bcecdfd6c18f87670120c931274e’

Unhandled rejection Error: EACCES: permission denied, open β€˜/home/kseikyo/.npm/_cacache/index-v5/03/87/421166c921d0547cfa62fb8708d21b55ad4632b2b2db5bd5443ee048866b’

Unhandled rejection Error: EACCES: permission denied, open β€˜/home/kseikyo/.npm/_cacache/index-v5/1e/3b/a390eebcd1d1386901f640ffa05141ef73e8293802e5e43e82bc617e95c2’

npm WARN deprecated @shinnn/eslint-config-node@6.0.2: Use @shinnn/eslint-config instead.
Unhandled rejection Error: EACCES: permission denied, rename β€˜/home/kseikyo/.npm/_cacache/tmp/c85db5df’ -> β€˜/home/kseikyo/.npm/_cacache/content-v2/sha512/c4/f7/4de47e3979c28aa02814e0fd4b4a5111873b1e2501da7085dad104fcdbbb0992a2428f10b1f2381445769c945ad6abb140ab69087e26fdb3e0600ca44381’

Unhandled rejection Error: EACCES: permission denied, open β€˜/home/kseikyo/.npm/_cacache/index-v5/14/1a/4acb93e17b849f731fdc2713e65b1349ce74768503c06c87639c392f6a0f’

Unhandled rejection Error: EACCES: permission denied, rename β€˜/home/kseikyo/.npm/_cacache/tmp/f9e88bd7’ -> β€˜/home/kseikyo/.npm/_cacache/content-v2/sha512/d6/ee/bb883a07f127ce3d1f99fa946db39d79d552c82613102cd4fdf15740ea13be8c55175e7ecb2cf1603ea2f5855214e2c1213f2cda10da15159f1d38981b39’

Unhandled rejection Error: EACCES: permission denied, mkdir β€˜/home/kseikyo/.npm/_cacache/content-v2/sha1/1e/ad’

Unhandled rejection Error: EACCES: permission denied, rename β€˜/home/kseikyo/.npm/_cacache/tmp/e8a74837’ -> β€˜/home/kseikyo/.npm/_cacache/content-v2/sha512/d6/ee/bb883a07f127ce3d1f99fa946db39d79d552c82613102cd4fdf15740ea13be8c55175e7ecb2cf1603ea2f5855214e2c1213f2cda10da15159f1d38981b39’

npm ERR! cb() never called!

Here is the log file: 2019-08-23T21_40_13_354Z-debug.log (59.2 KB)

Your issue is a known problem with file ownership being broken by past uses of sudo with global installs. This was fixed in: Release: 6.10.2

The quick fix is:

sudo chown -R $USER ~/.npm

If you are able to update npm to avoid the problem happening again, upgrade npm and then run the chown again one last time to fix any issues from the upgrade itself.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.