Closed nathanjd closed 7 years ago
This error appears to be caused by the module v8-debug
possibly not being compatible with that version of node. grunt-cli
doesn't use native addons so check your package.json
install script or try installing grunt-cli
from another folder.
Also it should be npm install grunt-cli -g
to install globally as grunt-cli
just gives access to the command grunt
to run local grunt projects.
Ahh whoops, thanks for pointing that out. Didn't realize that a package install could be affected by siblings. I tried it in a fresh directory and the install was successful.
q4i2@M00973344 ~/Projects/scratch/grunt-test
$ npm install grunt-cli@latest
npm WARN saveError ENOENT: no such file or directory, open '/Users/q4i2/Projects/scratch/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/q4i2/Projects/scratch/package.json'
npm WARN scratch No description
npm WARN scratch No repository field.
npm WARN scratch No README data
npm WARN scratch No license field.
+ grunt-cli@1.2.0
updated 1 package in 2.412s
Thank you.
Currently I have to downgrade to node 6.x to successfully install grunt-cli. Install always fails for node 8.x. Logs below:
$ node -v v8.4.0
$ npm -v 5.3.0
OS X El Capitan 10.11.3 (15D21)