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

Unable to find file when trying to get help docs. #62

Open
blade2005 opened this issue Mar 28, 2022 · 0 comments
Open

Unable to find file when trying to get help docs. #62

blade2005 opened this issue Mar 28, 2022 · 0 comments

Comments

@blade2005
Copy link

I was getting this on my local as well. I decided to build a Docker container to test this in isolation.
Here is my docker file

FROM node:lts
RUN npm -g install leafdoc && mkdir /workdir
WORKDIR /workdir
ENTRYPOINT ["leafdoc"]

Built with

docker build -f leafdoc.Dockerfile -t leafdoc:latest .

Executing docker run --rm leafdoc:latest -h gives me the following:

node:fs:585
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, open 'templates/basic/html.hbs'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at getTemplate (file:///usr/local/lib/node_modules/leafdoc/src/template.mjs:20:51)
    at Leafdoc.outputStr (file:///usr/local/lib/node_modules/leafdoc/src/leafdoc.mjs:508:11)
    at file:///usr/local/lib/node_modules/leafdoc/src/cli.mjs:83:12
    at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:61:12) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'templates/basic/html.hbs'
}

I would expect a standard help message. Not a complaint about a template file.

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

1 participant