<?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>Forem: Manuela Chamoso</title>
    <description>The latest articles on Forem by Manuela Chamoso (@manuelachamoso).</description>
    <link>https://forem.com/manuelachamoso</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%2F959387%2F03364357-1d6e-4f7f-9f94-e079ed07b918.png</url>
      <title>Forem: Manuela Chamoso</title>
      <link>https://forem.com/manuelachamoso</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/manuelachamoso"/>
    <language>en</language>
    <item>
      <title>Errors when creating strapi app using the command npx create-strapi-app@latest --quickstart</title>
      <dc:creator>Manuela Chamoso</dc:creator>
      <pubDate>Tue, 28 Mar 2023 14:14:24 +0000</pubDate>
      <link>https://forem.com/manuelachamoso/errors-when-creating-strapi-app-using-the-command-npx-create-strapi-applatest-quickstart-1h6j</link>
      <guid>https://forem.com/manuelachamoso/errors-when-creating-strapi-app-using-the-command-npx-create-strapi-applatest-quickstart-1h6j</guid>
      <description>&lt;p&gt;This week, I started a new project using Strapi, which is a platform that I have not used before. Everything was new to me, as I had previously worked on a project using Sanity, which required the latest version of Node 18 to function correctly. As a result, I had the most up-to-date version of Node installed on my system. However, when I attempted to run the &lt;code&gt;npx create-strapi-app@latest --quickstart&lt;/code&gt; command, I encountered an error: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Warning: config production; Use --omit=dev&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;while trying to install the dependency package. I searched various resources, such as stackoverflow, github, but the only advice I found was to install Node version 14 using &lt;code&gt;nvm install 14&lt;/code&gt; and &lt;code&gt;nvm use 14&lt;/code&gt;. Unfortunately, I was not able to resolve the issue using this solution on my computer. Ultimately, I found a different solution that worked for me, which was to do the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You need to first create a new Strapi project:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx create-strapi-app my-project --quickstart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Although the error message may persist, you will need to close and reopen the terminal before proceeding. After doing so, enter the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd my-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From there, you can run the npm install command with the --no-optional flag to exclude any optional dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install --no-optional
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks to this solution, I was able to install Strapi correctly and create my project, despite using the latest version of Node. The problem has been resolved.&lt;/p&gt;

</description>
      <category>strapi</category>
      <category>nextjs</category>
      <category>npx</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
