@endel that command worked for me, thanks!
It happens when I run the command inside a node@10 docker container as root. In my machine, it works as expected without the extra --
options.
@endel that command worked for me, thanks!
It happens when I run the command inside a node@10 docker container as root. In my machine, it works as expected without the extra --
options.
I'm trying to install colyseus.js client via npm: npm install --save colyseus.js
, but it returns an error:
root@04196b313c5a:/usr/src/app/frontend# npm install --save colyseus.js
> colyseus.js@0.10.8 postinstall /usr/src/app/frontend/node_modules/colyseus.js
> npm run -s donate
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! code ELIFECYCLE
npm ERR! errno 243
npm ERR! colyseus.js@0.10.8 postinstall: `npm run -s donate`
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the colyseus.js@0.10.8 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-08-19T14_07_34_459Z-debug.log
The module gets never installed and I cannot import it.
Am I doing anything wrong?