create-project icon indicating copy to clipboard operation
create-project copied to clipboard

Wrong path to templateDir

Open pstevovski opened this issue 7 years ago • 5 comments

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.

pstevovski avatar Mar 21 '19 15:03 pstevovski

I'm having the exact same problem. I'm using windows, and I've tried the program in the bash shell, cmd, and powershell.

cbadger85 avatar Mar 22 '19 23:03 cbadger85

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

hill84 avatar May 13 '19 13:05 hill84

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)

mobileben avatar Jan 24 '20 08:01 mobileben

@mobileben is right on the money, the problem is the %20.

dreamyguy avatar Jun 02 '20 22:06 dreamyguy

Can we have this implemented in the git repo?

validity-check avatar Jul 25 '20 13:07 validity-check