yahoo/context-parser

grunt test does not work

Closed this issue ยท 2 comments

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.

It is grunt-mocha-istanbul.

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).