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

Space in dir breaking on Windows #17

Open
MendyBerger opened this issue Feb 3, 2021 · 2 comments
Open

Space in dir breaking on Windows #17

MendyBerger opened this issue Feb 3, 2021 · 2 comments

Comments

@MendyBerger
Copy link

MendyBerger commented Feb 3, 2021

When running npm init @open-wc on Windows I get the following error:

Error: EPERM: operation not permitted, mkdir 'C:\Users\Mendy'
command not found: create

I tried to reinstall @open-wc/create already but no luck

I think that it has to do with the space in the directory name C:\Users\Mendy Berger\Documents\whatever

@LarsDenBakker
Copy link
Member

We've had reports about this before, but wasn't able to reproduce reliably. This is a good clue, need to look into it more.

@depyronick
Copy link

yeah, i can confirm that.

while trying to run command npm init @open-wc it just gave me the exact error that mendy has encountered. then i opened the terminal in administration mode, but it gave the ENOLOCAL error with a trimmed path just where the space is. because it was trying to write to npm cache. then i moved npm cache with npm config set cache C:\npm-cache --global now it works.

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

3 participants