Thursday, 17 June 2021

React - Error with create-react-app in Windows Environments - "Error: EEXIST: file already exists, mkdir 'C:\Users\XXXXX" - Fix/Solution

I've been asked this a more than once - so thought it prudent to document the current recommended workaround for this issue. While it is possible to install react apps globally to work around the error, it is not recommended per https://create-react-app.dev/docs/getting-started/ 

"If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version."

Preconditions:

  • The windows user name has spaces in it (e.g. c:\User\David Klein)

Steps to reproduce error/issue:

  1. User attempts to create react app with npx in a Windows environment:
    npx create-react-app my-app
  2. Error is generated:
Diagnostics:
  1. Seems that the npm cache path will consequently have a space in the path and npm (or more likely create-react-app) can't handle this.

Solution (until bug is fixed):
  1. Get the current cache path with "npm config get cache"
  2. cd to the c:\Users\ directory and run dir /x to get the short name of that folder (e.g. DAVIDK~1
  3. Once you have the short path, set the npm cache to use that path with the following:
    npm config set cache c:\users\davidk~1\AppData\Roaming\npm-cache --global
You should now be free to continue with your react app goodness in Windows:







32 comments:

www office com setup said...

Obtenez la clé de produitwww office com setup 2016 gratuitement et installez setup office com office 2019. Guide étape par étape pour setup office com download office

NoveltyDMVExperts said...

I have read Your Article and Learn a lot from it. I can Imagine the time it took to get all this expertise exposed . You can also look here to see where to easily get a CHECK IT OUT I've bookmark your site and furthermore include RSS. keep us refreshed all the time.

Unknown said...

Emblix Academy – Digital marketing institute in KPHB, we address all major and minor aspects required for any student’s advancement in digital marketing. Clutch USA named our Digital Marketing Institute the best SEO firm. for more info visit here :- https://emblixacademy.com/

Salvador said...

A variety of profiles dating sites for married of beautiful girls, and an accurate selection of those who are ideal for you. Forget about loneliness - chat, flirt, fall in love, build relationships, get married and be happy!

zoeyriley890 said...

I can't praise Programming Homework
Help
services enough, except for the previous order. It wasn't completed and sent in time. There were also a lot of mistakes and a few plagiarism issues, too, but I'm glad they came in and resolved the issue quite fast. Please make an effort to match experts with the right orders. The previous Python Homework Help must have been an amateur, though I appreciate his food knowledge. He only needs some experience to be perfect.

zoeyriley890 said...

My lecturer gave us an assignment almost at the end of the semester when we were supposed to be preparing for our examinations. I had to choose between studying for the exams and completing the assignment and going to the exams unprepared. So I paid for Statistics Homework Help on statisticshomeworkhelper.com. Then, I used the same Statistics Assignment Help expert's services for revising. After my results, I can confirm that working with the expert was a win-win. His assignment results were perfect, and I also scored most of the things he taught me right in the exams.

zoeyriley890 said...

I need Matlab Homework Help services but can't see the prices. So how do I go about it? It's a Matlab emergency order with 20 questions, and it's due in the next 2 days. The Matlab Assignment Help task is not so complicated, because I'm a first-year student and it's my end-semester exam. Please let me know how to go about the order placement process.

zoeyriley890 said...

I always show them my good side and I'm extremely grateful for that. There's no single time that I've ever run into an issue, neither have I failed before with their expertEconomics Assignment Help. I'm not sure if everyone else always gets the same treatment as mine, but I want to believe that the service is what makes them loyal customers. Otherwise, your Economics Homework Help is worth the investment. I'll keep you posted in case of more

aria315addison said...

I got the best Programming Assignment Help services from their experts, who showed the highest level of expertise and professionalism. Handling my project faster than expected was the best thing they could do to it, especially given that I also wanted some revision time with the paper and solutions. I'm glad I was able to understand a few more C concepts from the properly-arranged solutions. Cheers to the C Homework Help tutor!

aria315addison said...

I often use statistics Homework HelpS because they never fail. However, statisticshomeworkhelper.com isn't consistent with their prices. I gave up trying to find a model that could help me predict their prices. I think there should be a hint about their pricing criteria to help students have adequate preparation before submitting their assignments for help. Meanwhile, apart from the unpredictable price, I love everything else about the platform's Statistics Assignment Help.

aria315addison said...

I want to thank you for the extra effort put to ensure that I scored the best grade in my Matlab Assignment Help. I've established trust now, and I'll keep coming back to get more projects to be completed by their senior Matlab Homework Help experts. I'll share their good gospel with my friends, too. Thanks for the top mark.

aria315addison said...

Hi. Thanks a bunch for giving me grades that I never expected from economicshomeworkhelper.com. I only used the organization's Economics Assignment Help out of desperation, but it helped me discover that there is likely no better online service like it. I highly recommend the platform and this Economics Homework Help provider (the poster). He's such a fast and professional economist.

Lokeswari said...


Excellent blog and I really glad to visit your post. Keep continuing...


web designing course in chennai | online internships for civil engineering students | online internship for mechanical engineering | online internship for mba students | online internship for computer science students | online internship for biotech students | internships for ece students | internship for electrical engineering student | internship for ece students

Oakley Amelia said...

I am completely tired. I have just arrived from work only to realize that my economics assignment is due tomorrow. I am not in a position to complete it tonight, and therefore, I am requesting your Economics assignment help. I believe with theEconomics homework help experience, they will help me get better grades. I am proceeding to submit the assignment on your website.

Oakley Amelia said...

This Statistics Assignment Help provider has been completing my assignments and helping me understand them at the same time. That is, as soon as he submits the assignment's solutions, he commits himself to explain each of them to me on a video call. I always use this service to achieve perfect presentations and understand more concepts for future use in the examinations. Besides, the Statistics Homework Help specialist is a good advisor. He's generous with sharing his experience with students.

Oakley Amelia said...

Getting the perfectMatlab homework help solver has always been a challenge because very few Matlab assignments help experts understand all the concepts of Matlab. However, for the time they have been tackling my communications system assignment, they have given me new hope because they may not have one person working on all Matlab topics but they have different tutors in one pool. That is the main reason why I am so comfortable working with them.

Oakley Amelia said...

The Programming Homework Help service was worth more than every penny I paid for it. Thanks a bunch for giving me their time and dedication. I loved every bit of the experience I had with one of the Java Homework Help experts, who turned out to be very interactive and professional in the way she handled me and my assignment. The lady was experienced and polite. Thanks, too, for the affordable prices and easy payment process. I'll come again for more.

Mia Gabriella said...

Java isn't my cup of tea, but I'm confident that the Programming Assignment Help services are going to make a difference. I'm waiting for their solutions for the firstC++ Homework Help order that I've just sent. I believe that they're going to help me pass and understand some of the major concepts of the programming language.

Mia Gabriella said...

Statistics became harder than I thought before I joined the university. To make it worse, my lecturer wasn't the type of person that explains concepts deeply. So it was everyone for himself. Then I started the hunt for where I could getStatistics Homework Help online and bumped into statisticshomeworkhelper.com. I considered myself lucky to meet this trustworthy expert at my first attempt. He's a one-of-a-kindR Homework Help specialist.

Mia Gabriella said...

Looking for a master’s levelMatlab homework help solver. I am starting my image processing project but I don’t have time for it. I want aMatlab assignment help expert who will work on it from start to finish. Our professors like it worked step by step so that they can check and return comments for corrections. The tutor I want will be receiving the comments, correcting them, and then returning them to the professor. Once they are corrected and given a go-ahead to continue the tutor will then go ahead to the next chapter until the project is completed. Let me know whether they have someone who can do that.

Mia Gabriella said...

How can I be sure that they will complete my assignment on time? I have fallen into the hands of fakeEconomics assignment help experts so many times. I am now looking for a genuineEconomics homework help expert who is ready to partner with me for the next 2 years. I would appreciate it if you send me their samples to see the quality of your work

Unknown said...

Digital Marketing Institute in KPHB, we address all major and minor aspects required for any student’s advancement in digital marketing. Clutch USA named our Digital Marketing Institute the best SEO firm.

The future of digital marketing is promising and full of possibilities.
As a result, skilled digital marketers who can keep up with the rising demand are in high order.

In the Emblix Academy Digital marketing institute in KPHB, you will learn about all the major and minor modules of digital marketing, from Search engine marketing to Social Media Marketing and almost all Tools used for Digital Marketing.


Website: Digital Marketing Institute in KPHB

Kaylee Brown said...

In a class, when the subject is pretty hard, the professor finds time to explain to everyone present. But if the topic seems easier, and an individual student faces problems handling the topic, the teacher will not always help. Students sometimes feel shy to ask for such explanations. This, in turn, harms the career of the student. The student needs to learn the topic, and at the same time, he needs to finish the assignment too! Hence, the student goes for java assignment help and spends the time learning the subject by heart. When the professors cannot explain the portions individually, the students need to take help from online teaching platforms or from the assignment service providers to understand a certain topic!

Poovarasan said...

A very interesting blog....
ups computer full form
kb full form
love full form
rpm full form
ide full form in computer
dtp full form
d v d full form
bca full form and subjects
swat full form
micr full form in computer

Tamil Typing said...

Thanks for sharing informative post. Are looking for best Tamil typing tool online, make use of our Tamil typing software to make translation faster. Thirumana Porutham in Tamil | Samacheer Kalvi Books PDF

james said...

Ask us to do or Hire online Finance Assignment Help experts for your finance assignments, projects and homework solutions at affordable prices. Tips provided by our experts to students at the time of writing finance assignment - Know about the main areas of the topic.
For more info- Get Assignment Help

Antonio Rainey said...

whoa this blog is magnificent i like reading your posts. Keep up the good work!
You already know, many persons are looking around for this information, you can aid them greatly. ON WHERE TO ACQUIRE VERIFIABLE FAKE BIRTH CERTIFICATE ONLINE I’ve been browsing on-line greater than 3 hours nowadays, but I by no means discovered any attention-grabbing article like yours.
It is lovely worth sufficient for me. In my view, if all website owners and bloggers made good content as you did, the net can be much more useful than ever before.

Unknown said...


Emblix Academy – Digital marketing institute in KPHB, we address all major and minor aspects required for any student’s advancement in digital marketing. Clutch USA named our Digital Marketing Institute the best SEO firm.

The future of digital marketing is promising and full of possibilities.

As a result, skilled digital marketers who can keep up with the rising demand are in high order.
In the Emblix Academy Digital marketing institute in KPHB, you will learn about all the major and minor modules of digital marketing, from Search engine marketing to Social Media Marketing and almost all Tools used for Digital Marketing.
One stop place for all Digital Marketing courses! Emblix Academy is a Team of dedicated Professionals with 12years of experience in various Digital Platforms. We assure to provide the best Digital Marketing courses to enhance your Career.
Certifications

• Search Advertising
• Display Advertising
• Analytics Certification
• Hubspot Certification
• Bing Certification
• Twitter Certification
• Facebook Certification

https://emblixacademy.com/

kaashivit said...

Thanks for the information... I really love your blog posts..
eniac full form in computer
dvd full form
sit full form
pcc full form
iucn full form
full form of lcd
brics full form
tally erp full form
full form of ctbt
crpf full form

sowmiya said...

manaiyadi sasthiram tamil
food for hair growth in tamil
moochu pidippu
badam benefits in tamil
உடல் எடை அதிகரிக்க
badam pisin benefits in tamil
dolo 650 uses in tamil
bay leaf in tamil
saibol cream uses in tamil
அதிமதுரம் பயன்கள்

sowmiya said...

flax seed in tamil
siva puranam lyrics in tamil
liver in tamil
fenugreek tamil
apricots in tamil
avaram pu
poppy seeds in tamil
amma kavithaigal in tamil
thoppukaranam in english
tamil mokka joke

Phuwadon said...

pgslot pgslot เว็บเดียวในประเทศไทยที่มีเกมสล็อตให้เล่นได้แบบเต็มพิกัดและมีโปรโมชั่นสุดพิเศษมากมายพร้อมโบนัสอีก 20 % ที่สามารถขอรับได้ตลอดเวลาและทุกยอดการฝากเงินเข้ามา พร้อมยังมีรางวัลอีกมากมายรอให้ลุ้นอยู่ในเกมอย่ารอช้ารีบๆเข้ามาเล่นแล้วไปคว้ารางวัลอีกมากมายได้เลย