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 running susi #9

Open
yisraelgrimes opened this issue Jul 4, 2018 · 2 comments
Open

Error when running susi #9

yisraelgrimes opened this issue Jul 4, 2018 · 2 comments

Comments

@yisraelgrimes
Copy link

yisraelgrimes commented Jul 4, 2018

I know it's been a while since this project's seen any action but... It's so simple and elegant I'm hoping you can help me out. When running the susi command as per the readme, I'm getting an error. For testing, I've just been using your example html and markdown so I don't think that would be the issue. Here's the error message:

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:634:3)
    at tryReadSync (fs.js:474:20)
    at Object.fs.readFileSync (fs.js:515:19)
    at convertFilesInPath (/usr/local/lib/node_modules/susi/susi:43:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/susi/susi:62:1)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)

Any help that you could give me would be very much appreciated :)

Thanks!

@jeremykohn
Copy link

jeremykohn commented Jan 22, 2020

Found the issue:

The version of susi from NPM (0.1.4) expects the third argument to be an HTML file, e.g. /var/www/layout.html, not a directory which ends in a slash.

The GitHub repo has a newer version of susi (0.2.3), which expects the third argument to have a trailing slash. However, I haven't yet installed and tested this version.

@jeremykohn
Copy link

jeremykohn commented Jan 22, 2020

Just tested and confirmed: in version 0.2.3, each of the three arguments must be a directory, not a file.

susi directory/with/markdown_files/ output_directory/ path/to/layouts/

And as it turns out, each trailing slash is optional.

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

No branches or pull requests

2 participants