question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong path to templateDir

See original GitHub issue

Hey, I was following along your tutorial that you had over here and I’m not quite sure what is causing it. I think its the templateDir path, since it gives me this error in the terminal: ERROR Error: ENOENT: no such file or directory, access 'C:\E:\Web%20development\Projects\creator-cli\templates\javascript'.

Notice the C:\E:\. Not sure what is causing it, since I followed your tutorial and this is what turns out. I even copy pasted the whole thing from you, and the same thing again. Same when I tried using your own npm package from this repo.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

5reactions
mobilebencommented, Jan 24, 2020

I’m on a Mac and encountered this. I think the problem is the %20. I ended up using this for the url string

decodeURI(new URL(currentFileUrl).pathname)
3reactions
hill84commented, May 13, 2019

Found a solution for what I think was the same issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

init-templatedir installing hooks to wrong directory · Issue #1720
I was trying to use the init-templatedir functionality of pre-commit and ran into a weird problem: Using Windows 10, pre-commit 2.9.2, ...
Read more >
Set up a default directory structure on git init - Stack Overflow
So what is it that I'm doing wrong here? Incorrect configuration directive? Bad template or its location (I'm on OSX)? Should template be...
Read more >
Check the configuration for TemplateDir and TemplatePath?
Hi, I am getting the following error below. I have set the correct path or both the TemplateDir and TemplatePath in the web...
Read more >
git-init Documentation - Git
This command creates an empty Git repository - basically a .git directory ... Only print error and warning messages; all other output will...
Read more >
template_dir | Resources | hashicorp/template
destination_dir - (Required) Path to the directory where the templated files will be written. vars - (Optional) Variables for interpolation within the template....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found