senchalabs / jsduck

Simple JavaScript Duckumentation generator.
http://docs.sencha.com/
GNU General Public License v3.0
1.5k stars 238 forks source link

jsduck: command not found #673

Closed nuri-engin closed 6 years ago

nuri-engin commented 6 years ago

I've completed required installation for jsduck and now it's exist on ˜/.gem/ruby/2.0.0/gems/jsduck-5.3.4

and includes those files: COPYING, README.md, bin, js-classes, lib, template-min

but when runing this command; jsduck sencha-sdks/ext-6.5.2/build Dev/myapp/ --output docs

it returns this error; jsduck: command not found

I'm using MacOS and couldn't figure out what is missing here?

nene commented 6 years ago

The problem is that the directory that contains jsduck executable is not in your $PATH. Check what it contains:

echo $PATH

You likely have a general problem with installing Ruby gems. Search the web for general problem of installing them as executables. For example: https://stackoverflow.com/questions/2392293/ruby-gems-returns-command-not-found