<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aaron009</title>
    <description>The latest articles on DEV Community by Aaron009 (@aaron009).</description>
    <link>https://dev.to/aaron009</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1379632%2F70227247-fa31-4d1c-9396-1d10b1165342.png</url>
      <title>DEV Community: Aaron009</title>
      <link>https://dev.to/aaron009</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aaron009"/>
    <language>en</language>
    <item>
      <title>Why does running `npx create-react-app my-app` result in my-app folder consuming 7GB of disk space?</title>
      <dc:creator>Aaron009</dc:creator>
      <pubDate>Sun, 24 Mar 2024 15:39:02 +0000</pubDate>
      <link>https://dev.to/aaron009/why-does-running-npx-create-react-app-my-app-result-in-my-app-folder-consuming-7gb-of-disk-space-1jpn</link>
      <guid>https://dev.to/aaron009/why-does-running-npx-create-react-app-my-app-result-in-my-app-folder-consuming-7gb-of-disk-space-1jpn</guid>
      <description>&lt;p&gt;I'm running "npx create-react-app my-app" to create a new React app. However, I noticed that the "my-app" folder consumed about 7GB of disk space. I'm confused by this and would like to understand why this is happening.&lt;/p&gt;

&lt;p&gt;This is the sequence of commands I'm running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-react-app my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After running the above command, the "my-app" folder ends up taking up a lot of disk space.&lt;/p&gt;

&lt;p&gt;Additionally, every time I run "npx create-react-app my-app" it prompts me:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The following packages need to be installed:
create-react-app@5.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It seems that every time I create a project, I will be prompted to install the software package. Why not cache them?&lt;/p&gt;

&lt;p&gt;Can someone explain why the disk space consumption is so high and why the packages are not cached?&lt;/p&gt;

&lt;p&gt;Every time a project is created, the size of the node_modules folder in the project folder automatically increases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv0d670d6da06a2m75m7z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv0d670d6da06a2m75m7z.png" alt="Image description" width="800" height="541"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fekndbrnli9b672xb6va1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fekndbrnli9b672xb6va1.png" alt="Image description" width="662" height="869"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every time I create a new project, I have to wait for nearly 1hours. There is no network speed problem here.&lt;/p&gt;

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
