Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when installing abao #9

Closed
sichvoge opened this issue Nov 6, 2014 · 8 comments
Closed

error when installing abao #9

sichvoge opened this issue Nov 6, 2014 · 8 comments
Labels

Comments

@sichvoge
Copy link

sichvoge commented Nov 6, 2014

Steps done:

  1. git clone
  2. run npm install abao

After executing step 2 - I'm getting the following output:

npm install abao

abao@0.2.2 prepublish abao
grunt coffee

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 ERR! addLocalDirectory Could not pack "abao" to "/Users/christianmule/.npm/abao/0.2.2/package.tgz"
abao@0.2.2 ../../node_modules/abao
├── underscore@1.7.0
├── async@0.9.0
├── proxyquire@1.0.1
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── glob@4.0.6 (inherits@2.0.1, graceful-fs@3.0.4, once@1.3.1, minimatch@1.0.0)
├── mocha@2.0.1 (escape-string-regexp@1.0.2, diff@1.0.8, growl@1.8.1, commander@2.3.0, debug@2.0.0, mkdirp@0.5.0, glob@3.2.3, jade@0.26.3)
├── raml-parser@0.8.7 (inflection@1.3.8, xmlhttprequest@1.6.0, q@0.9.7, uritemplate@0.3.4, json-lint@0.1.0)
├── request@2.47.0 (caseless@0.6.0, json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, stringstream@0.0.4, oauth-sign@0.4.0, tunnel-agent@0.4.0, node-uuid@1.4.1, qs@2.3.2, mime-types@1.0.2, combined-stream@0.0.7, form-data@0.1.4, tough-cookie@0.12.1, hawk@1.1.1, http-signature@0.10.0, bl@0.9.3)
├── jsonlint@1.6.2 (nomnom@1.8.0, JSV@4.0.2)
├── chai@1.9.2 (assertion-error@1.0.0, deep-eql@0.1.3)
├── chai-json-schema@1.1.0 (tv4@1.0.18, jsonpointer.js@0.3.0)
└── csonschema@0.5.0 (cson-safe@0.1.1)

@cybertk
Copy link
Owner

cybertk commented Nov 6, 2014

Please try npm i -g grunt-cli before install

@sichvoge
Copy link
Author

Thanks cybertk. Done it and npm install works now in the cloned repo, but when I try to run abao api.raml --names I just get command not found back. Do I miss anything?

@cybertk
Copy link
Owner

cybertk commented Nov 10, 2014

Please invoke abao with bin/abao if you clone the repo.

Use abao only when you install from npm via npm i -g abao

@sichvoge
Copy link
Author

I first tried to install abao with npm only, but was not able to run abao from my command line so I've cloned the repo.

When I run bin/abao ~/Downloads/api.raml --names now I get Error: Must specify api endpoint. back, but in your docu you got an example using abao on a single RAML file without api endpoint with --names to get a summary of your spec.

@cybertk
Copy link
Owner

cybertk commented Nov 11, 2014

@sichvoge when you install abao with npm, you must provide -g to npm. README has been updated by PR #10

For --names error, it's a known defect and tracked by #6.

@sichvoge
Copy link
Author

Got it. Now I can type in abao into my console from everywhere :) Next problem I got is:

abao Downloads/api.raml --names

module.js:340
    throw err;
          ^
Error: Cannot find module 'coffee-script/register'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/abao/lib/add-hooks.js:6:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/abao/lib/add-hooks.js:46:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

I had to install coffee-script via npm install -g coffee-script. That is missing in the README, right?

@cybertk
Copy link
Owner

cybertk commented Nov 11, 2014

@sichvoge Fixed in v0.2.3. Please reinstall abao

@cybertk
Copy link
Owner

cybertk commented Nov 11, 2014

#6 is fixed in v0.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants