there4 / markdown-resume

Generate a responsive CSS3 and HTML5 resume with Markdown, with optional PDF output.
MIT License
1.77k stars 519 forks source link

The dependency '' was not found. Please run `composer install` to install dependencies. #77

Closed kaaljabr closed 6 years ago

kaaljabr commented 6 years ago

I already did: composer install

Then when I do ./bin/md2resume html examples/source/sample.md examples/output/

I get: The dependency '' was not found. Please run `composer install` to install dependencies.

on OSX

kaaljabr commented 6 years ago

I found the issue it is line number 13 of md2resume file

$autoloadPath = basename($baseDir) === 'markdown-resume'
              ? realpath($baseDir . '/../../autoload.php')
              : $baseDir . '/vendor/autoload.php';

executing this piece of code sets null or undefined in $autoloadPath.

change it to

$autoloadPath = $baseDir . '/vendor/autoload.php';

it should work

tigerclaw-az commented 6 years ago

@craig-davis was there a reason for this conditional originally? if something has changed since this was needed, can we get an official fix for this?

craig-davis commented 6 years ago

It looks like it was introduced in PR #66 for issue #65. I didn't follow that PR very closely.