maxgalbu/nightwatch-custom-commands-assertions

Install gulp and coffeelint globally

jehon opened this issue · 0 comments

jehon commented

The npm package try to install gulp and coffelint globally, which fail in my setup.

Is it really necessary?

I would expect the package to work without global installation.

Thanks in advance

Command used:
$ npm install --save-dev nightwatch-custom-commands-assertions

Here is the complete log:

nightwatch-custom-commands-assertions@1.0.2 preinstall /var/www/cryptomedic/node_modules/nightwatch-custom-commands-assertions
npm install -g gulp coffeelint nightwatch
npm ERR! tar.unpack untar error /home/jehon/.npm/nightwatch/0.6.13/package.tgz
npm ERR! tar.unpack untar error /home/jehon/.npm/coffeelint/1.10.0/package.tgz
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "gulp" "coffeelint" "nightwatch"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /usr/lib/node_modules/nightwatch
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, mkdir '/usr/lib/node_modules/nightwatch'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/usr/lib/node_modules/nightwatch']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/lib/node_modules/nightwatch',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/lib/node_modules/nightwatch',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
npm ERR! '/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
npm ERR! 'FSReqWrap.oncomplete (fs.js:95:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/gulp'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/usr/bin/gulp'] errno: -13, code: 'EACCES', path: '/usr/bin/gulp' }

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/cryptomedic/node_modules/nightwatch-custom-commands-assertions/npm-debug.log
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--save-dev" "nightwatch-custom-commands-assertions"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE

npm ERR! nightwatch-custom-commands-assertions@1.0.2 preinstall: npm install -g gulp coffeelint nightwatch
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the nightwatch-custom-commands-assertions@1.0.2 preinstall script 'npm install -g gulp coffeelint nightwatch'.
npm ERR! This is most likely a problem with the nightwatch-custom-commands-assertions package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install -g gulp coffeelint nightwatch
npm ERR! You can get their info via:
npm ERR! npm owner ls nightwatch-custom-commands-assertions
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/cryptomedic/npm-debug.log