grunt test does not work
Closed this issue ยท 2 comments
dmitris commented
I would suggest to indicate explicitly that you need to install npm install -g grunt-cli
so that users would not have to do preliminary research on the grunt CLI installation ๐
I'm trying to follow the "How to build" instructions (https://github.com/yahoo/context-parser#how-to-build) but it does not work for me:
$ grunt
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
$ npm install grunt
grunt@0.4.5 node_modules/grunt
โโโ which@1.0.8
โโโ dateformat@1.0.2-1.2.3
โโโ eventemitter2@0.4.14
โโโ getobject@0.1.0
โโโ rimraf@2.2.8
โโโ colors@0.6.2
โโโ async@0.1.22
โโโ hooker@0.2.3
โโโ grunt-legacy-util@0.2.0
โโโ exit@0.1.2
โโโ lodash@0.9.2
โโโ nopt@1.0.10 (abbrev@1.0.5)
โโโ coffee-script@1.3.3
โโโ underscore.string@2.2.1
โโโ minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0)
โโโ glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.3)
โโโ iconv-lite@0.2.11
โโโ findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)
โโโ grunt-legacy-log@0.1.1 (underscore.string@2.3.3, lodash@2.4.1)
โโโ js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.16)
$ grunt
>> Local Npm module "grunt-mocha-istanbul" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
Warning: Task "clean:buildResidues" not found. Use --force to continue.
Aborted due to warnings.
$ npm install grunt-mocha-instanbul grunt-contrib-jshint grunt-contrib-clean
npm ERR! Darwin 14.1.0
npm ERR! argv "/Users/dmitris/.nvm/v0.12.0/bin/node" "/Users/dmitris/.nvm/v0.12.0/bin/npm" "install" "grunt-mocha-instanbul" "grunt-contrib-jshint" "grunt-contrib-clean"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code E404
npm ERR! 404 Not Found: grunt-mocha-instanbul
npm ERR! 404
npm ERR! 404 'grunt-mocha-instanbul' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'context-parser'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/dmitris/dev/hack/context-parser/npm-debug.log
$ grunt
>> Local Npm module "grunt-mocha-istanbul" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
Warning: Task "clean:buildResidues" not found. Use --force to continue.
Aborted due to warnings.
includesoft-lm:context-parser dmitris$ grunt test
>> Local Npm module "grunt-mocha-istanbul" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
Warning: Task "clean:buildResidues" not found. Use --force to continue.
Aborted due to warnings.
$
Let me know if you need the npm-debug.log file.
yukinying commented
It is grunt-mocha-istanbul.
dmitris commented
sorry I missed the npm install
step before grunt
- closing the bug (you can decide if you want to mention npm install -g grunt-cli
or not).