Skip to content

Instantly share code, notes, and snippets.

@anomaly44
Created November 26, 2015 21:57
Show Gist options
  • Save anomaly44/d8f55f1b31f8894c3d0c to your computer and use it in GitHub Desktop.
Save anomaly44/d8f55f1b31f8894c3d0c to your computer and use it in GitHub Desktop.
rob@rmint ~/dev/fix $ npm install -g knex
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "knex"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! path /usr/local/bin/lib/node_modules/knex/LICENSE
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/bin/lib/node_modules/knex/LICENSE'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/bin/lib/node_modules/knex/LICENSE']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/bin/lib/node_modules/knex/LICENSE' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/bin/lib/node_modules/knex/LICENSE'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/bin/lib/node_modules/knex/LICENSE']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: '/usr/local/bin/lib/node_modules/knex/LICENSE' }
npm ERR! Please include the following file with any support request:
npm ERR! /home/rob/dev/fix/npm-debug.log
rob@rmint ~/dev/fix $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment