aktos-io / scadajs-showcase

ScadaJS Template Project
6 stars 1 forks source link

Installing global dependencies: WARN checkPermissions Missing write access to /usr/local/lib #1

Closed ysdede closed 7 years ago

ysdede commented 7 years ago

Got stuck at installation step 2:

  1. Install global dependencies (if you didn't already):

    npm install -g gulp yarn livescript@1.4.

When I try to run npm install -g gulp yarn livescript@1.4 I get some warnings like:

npm ERR! Linux 4.8.0-59-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "gulp" "yarn" "livescript@1.4.0"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
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!     at Error (native)
npm ERR!  { [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
ceremcem commented 7 years ago

The -g switch means "global installation", which requires root privileges. Since you are on Linux, this command should be run as root:

sudo npm install -g gulp yarn livescript@1.4.0