npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Errors installing fkill

Hello,
I try to install fkill in Ubuntu 18.10. First I install npm (sudo apt install npm) and lot of deps.

nodejs -v
v8.11.4

npm -v 
5.8.0                                           

when I type in terminal:

npm install --global fkill-cli


npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it 
instead
npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/przemek/.npm/_logs/2018-11-07T09_48_04_973Z-debug.log


Please try following the steps in https://docs.npmjs.com/getting-started/fixing-npm-permissions.


Thanks, I will try that.