0

I've installed dredd globally on mac os but when calling dredd it comes back command not found

➜  test git:(master) dredd
zsh: command not found: dredd

Not sure if this is being saved in the correct place or there's an extra step i'm missing.

My initial install was:

➜  test git:(master) npm install -g dredd
npm WARN deprecated coffee-script@1.12.6: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
/Users/bob/.npm-packages/bin/dredd -> /Users/bob/.npm-packages/lib/node_modules/dredd/bin/dredd
+ dredd@4.8.2
updated 1 package in 5.563s
  • Does executing `/Users/bob/.npm-packages/lib/node_modules/dredd/bin/dredd` work? Maybe for some reason you don't have the `/Users/bob/.npm-packages/bin/` directory in your system path. – Honza Javorek Dec 12 '17 at 16:30
  • Hi @HonzaJavorek this seems to get a little closer but then asks me to install **pip install dredd_hooks** which I do, but it returns 'Requirement already satisfied' – Late Developer Dec 15 '17 at 13:03
  • What does `which dredd` and `dredd --version` output? And `which dredd_hooks`? – Honza Javorek Dec 16 '17 at 11:01

1 Answers1

0

try to run using

./node_modules/.bin/dredd

and make sure dredd.yml exists as in ./dredd.yml

CertainPerformance
  • 356,069
  • 52
  • 309
  • 320