View Single Post
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#128
Help please
Code:
[nemo@Jolla ~]$ npm update -g prey
[nemo@Jolla ~]$ [sudo] npm install -g prey
-bash: [sudo]: command not found
[nemo@Jolla ~]$ npm install -g prey
|
> prey@1.3.6 preuninstall /usr/lib/node_modules/prey
> ./bin/prey config hooks pre_uninstall

===============================================================================
  Holy cow! Looks like you ran 'npm remove' but without the --unsafe-perm flag.
  This means the init scripts will remain installed, because they need root to be removed.

  To ensure a clean uninstall, please reinstall the package and then re-run this command,
  only this time with the --unsafe-perm flag, so everything gets wiped out:

  $ sudo npm -g remove prey --unsafe-perm
===============================================================================
npm WARN continuing anyway prey@1.3.6 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1
npm ERR! Linux 3.4.98.20141219.1.1
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "prey"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! path /usr/bin/prey
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/usr/bin/prey'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, unlink '/usr/bin/prey'] errno: -13, code: 'EACCES', path: '/usr/bin/prey' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

> prey@1.3.6 preuninstall /usr/lib/node_modules/prey
> ./bin/prey config hooks pre_uninstall

===============================================================================
  Holy cow! Looks like you ran 'npm remove' but without the --unsafe-perm flag.
  This means the init scripts will remain installed, because they need root to be removed.

  To ensure a clean uninstall, please reinstall the package and then re-run this command,
  only this time with the --unsafe-perm flag, so everything gets wiped out:

  $ sudo npm -g remove prey --unsafe-perm
===============================================================================
npm WARN continuing anyway prey@1.3.6 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1
npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/prey'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES, unlink '/usr/bin/prey'] errno: -13, code: 'EACCES', path: '/usr/bin/prey' }

npm ERR! Please include the following file with any support request:
npm ERR!     /home/nemo/npm-debug.log
[nemo@Jolla ~]$