curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Reproduced on 3 machines with Ubuntu, Gentoo and Debian.
Installing dependencies for linux
npm ERR! path /root/.npm/_logs
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall scandir
npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR! stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'scandir',
npm ERR! path: '/root/.npm/_logs' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs' }
npm ERR! path /root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb'
npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb'
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb' },
npm ERR! isOperational: true,
npm ERR! stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/root/.npm/_cacache/index-v5/72/cd/db7e56b5f30d99ee562b982f36baebabea27a061739c4bc1b5c327f3f7fb' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
Node was installed like this:
Then i tried to install a package (
kalama-mplayer@0.8.0-1) which contains a platform dependencyplatform-foldersmanaged withnpm-platform-dependenciesand got the following error.Reproduced on 3 machines with Ubuntu, Gentoo and Debian.