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.

Unable to create app in directory on Windows

See original GitHub issue

šŸ› Bug Report

The npx creation of a docusaurus app fails because of the Windows user directory name has a space in it.

Have you read the Contributing Guidelines on issues?

  • Yes I have

To Reproduce

(Write your steps here:)

Create a directory with a space in it. ie) \Desktop\My Blog and run

npx @docusaurus/init@next init site

Expected behavior

Creates a directory in My Blog with the app

Actual Behavior

(Write what happened. Add screenshots, if applicable.)

You will get the following error

Error: EEXIST: file already exists, mkdir '\Desktop\My'
command not found: init

Your Environment

  • Docusaurus version used: latest
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): node v12.16.2 and yarn 2.1.1
  • Operating system and version (desktop or mobile): desktop

Reproducible Demo

(Paste the link to an example repo, including a siteConfig.js, and exact instructions to reproduce the issue.)

Error with making app itself.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ashscodescommented, Sep 30, 2020

I have a feeling this is a Node.js issue, possibly relating to user permission level. I’d confirm that it has the same behaviour when you run the shell as administrator and without elevation.

There is also a Stack Overflow thread here that suggests that the node environment variables aren’t set correctly.

0reactions
slorbercommented, Oct 2, 2020

Thanks, so let’s close as it seems related to your local permissions setup

Read more comments on GitHub >

github_iconTop Results From Across the Web

failed to create application directories under
I am trying to install a program but it fails to install with 'failed to create application directories under 'C:\programData\Application ...
Read more >
Fix: Can't Create New Folder in Windows 10 [Option Missing]
1. Edit the Registry manually Ā· 2. Uninstall problematic applications Ā· 3. Run an SFC scan Ā· 4. Use Command Prompt to create...
Read more >
Program in the Program Files folder unable to create files in ...
I've developed an application, say MyApp, and created an installer that installs the main executable with its related dependencies (folders andĀ ...
Read more >
Top 8 Ways to Fix Can't Create a New Folder on Windows 11
Top 8 Ways to Fix Can't Create a New Folder on Windows 11 Ā· 1. Restart File Explorer Ā· 2. Use Keyboard Shortcut...
Read more >
Can't Create a New Folder in Windows 10? Here's How to Fix It
1. Update Your Windows Ā· 2. Try the Keyboard Shortcut to Create a New Folder Ā· 3. Create a New Folder via Command...
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