I got it working. I had to add permissions to these directories: /usr/local /usr/lib/node_modules
On Monday, August 31, 2015 at 9:41:35 AM UTC-4, Pat wrote: > > Hi > > I'm trying to get Grunt up and running with Jenkins by following this > article <http://sideroad.secret.jp/articles/grunt-on-jenkins/>. > > I'm terribly new to Linux and I'm running into permission problems. I'm > giving out read, write and execute permissions like candy to the "everyone" > user to track down the permission issue, but I can't track it down. > > These are the errors npm is throwing: > > npm ERR! Linux 3.16.0-30-generic > > npm ERR! argv "node" "/usr/bin/npm" "install" "-g" "grunt-cli" > > npm ERR! node v0.12.7 > > npm ERR! npm v2.14.0 > > npm ERR! path /usr/bin/grunt > > npm ERR! code EACCES > > npm ERR! errno -13 > > npm ERR! Error: EACCES, unlink '/usr/bin/grunt' > > npm ERR! at Error (native) > > npm ERR! { [Error: EACCES, unlink '/usr/bin/grunt'] errno: -13, code: > 'EACCES', path: '/usr/bin/grunt' } > > npm ERR! > > npm ERR! Please try running this command again as root/Administrator. > > npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/grunt' > > npm ERR! error rolling back at Error (native) > > npm ERR! error rolling back { [Error: EACCES, unlink '/usr/bin/grunt'] > errno: -13, code: 'EACCES', path: '/usr/bin/grunt' } > > > /usr/bin/grunt is a symlink if that helps. > > > I really have no idea where to ask this question since it involves > Jenkins, Linux, npm and Grunt, so I thought I'd start here. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9173284b-c408-406f-ba7a-80b0283a10a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
