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:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Thanks, so letās close as it seems related to your local permissions setup