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: "ENOENT: Cannot cd into '/path/to/dist'" #85

Open
alice1017 opened this issue May 9, 2019 · 2 comments
Open

Error: "ENOENT: Cannot cd into '/path/to/dist'" #85

alice1017 opened this issue May 9, 2019 · 2 comments

Comments

@alice1017
Copy link

overview

creato fails to load a template with this error:

ENOENT: Cannot cd into 'path/to/dist'

SnapCrab_NoName_2019-5-9_11-39-27_No-00

spec

  • node - v11.0.0
  • npm - 6.9.0
  • yarn - 1.13.0
  • OS - Windows10
@maticzav
Copy link
Owner

maticzav commented May 9, 2019

hey @alice1017 👋,

Could you also provide the source code of your project? Would it be possible that the destination is in any way restricted?

@alice1017
Copy link
Author

alice1017 commented May 10, 2019

Thank you for reply. code is here:

import { creato } from "creato";

const template = [
    {
        name: "blog",
        description: "alice1017 blog system",
        repo: {
            uri: "https://github.com/alice1017/alice1017.github.io",
            branch: "master",
            path: "/"
        }
    }
]

creato(template, {force: true});

destination directory permission:

$ ls -l
drwxrwxrwx 1 alice 512  5月  9 11:26 creato/

What do you think? I have no idea.

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