Describe the bug
After change yarn and npm config, i can't create react app by yarn create react-app app. the config file are follow:
.npmrc:
prefix=D:\Project\NodeCache\NpmCache
cache=D:\Project\NodeCache\NpmCache
.yarnrc:
cache-folder "D:\\Project\\NodeCache\\YarnCache"
global-folder "D:\\Project\\NodeCache\\YarnGlobal"
lastUpdateCheck 1653189191412
link-folder "D:/Project/NodeCache/YarnLink"
note: only yarn create react-app my-app dosent work, npx create-react-app my-app works.
Did you try recovering your dependencies?
No, because the project is not created successfully yet, i can't run yarn install.
Which did you search for in User Guide?
yes, i searched in https://create-react-app.dev/docs/troubleshooting, but found nothing. i also search in issues. what i searched are follow:
- The filename, directory name, or volume label syntax is incorrect
- volume label
Environment
D:\Project\React\covid-19>npx create-react-app --info
npx: installed 67 in 9.337s
Environment Info:
current version of create-react-app: 5.0.1
running from D:\Project\NodeCache\NpmCache\_npx\9576\node_modules\create-react-app
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 14.17.6 - D:\Program Files\Nodejs\node14\node.EXE
Yarn: 1.22.17 - D:\Program Files\Nodejs\node14\yarn.CMD
npm: 6.14.15 - D:\Program Files\Nodejs\node14\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.19041.1266.0), Chromium (89.0.774.68)
Internet Explorer: 11.0.19041.1566
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
(Write your steps here:)
1.start cmd in target directory.
4.run yarn create react-app bug-demo
5.error occurs.
Expected behavior
create app in target dirctory successfully.
Actual behavior
cra report a error: The filename, directory name, or volume label syntax is incorrect

Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Describe the bug
After change yarn and npm config, i can't create react app by
yarn create react-app app. the config file are follow:.npmrc:
.yarnrc:
note: only
yarn create react-app my-appdosent work,npx create-react-app my-appworks.Did you try recovering your dependencies?
No, because the project is not created successfully yet, i can't run
yarn install.Which did you search for in User Guide?
yes, i searched in https://create-react-app.dev/docs/troubleshooting, but found nothing. i also search in issues. what i searched are follow:
Environment
Steps to reproduce
(Write your steps here:)
1.start cmd in target directory.
4.run
yarn create react-app bug-demo5.error occurs.
Expected behavior
create app in target dirctory successfully.
Actual behavior
cra report a error:
The filename, directory name, or volume label syntax is incorrectReproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)