Grunt

32 views
Skip to first unread message

Pat

unread,
Aug 31, 2015, 9:41:35 AM8/31/15
to Jenkins Users
Hi

I'm trying to get Grunt up and running with Jenkins by following this article.

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.

Pat

unread,
Aug 31, 2015, 12:51:13 PM8/31/15
to Jenkins Users
I got it working. I had to add permissions to these directories:

/usr/local
/usr/lib/node_modules
Reply all
Reply to author
Forward
0 new messages