<?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: Evancodes</title>
    <description>The latest articles on DEV Community by Evancodes (@evan1115).</description>
    <link>https://dev.to/evan1115</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%2F1051983%2F7a5ee808-5b18-41d5-849f-b38f87337a89.JPG</url>
      <title>DEV Community: Evancodes</title>
      <link>https://dev.to/evan1115</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evan1115"/>
    <language>en</language>
    <item>
      <title>Cypress Installation Self-Signed Certificate/ Proxy Issue</title>
      <dc:creator>Evancodes</dc:creator>
      <pubDate>Tue, 04 Jul 2023 15:12:25 +0000</pubDate>
      <link>https://dev.to/evan1115/cypress-installation-self-signed-certificate-proxy-issue-9o</link>
      <guid>https://dev.to/evan1115/cypress-installation-self-signed-certificate-proxy-issue-9o</guid>
      <description>&lt;p&gt;Recently when I was trying to install Cypress for my project, it was failed due to self-signed certificate or proxy issue as below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foj5rnscthpzvc5q8yypl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foj5rnscthpzvc5q8yypl.png" alt="Error while installing Cypress"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've tried to set the &lt;strong&gt;NODE_EXTRA_CA_CERTS&lt;/strong&gt; to point to my certificate in local as environment variable but it's still not working. &lt;/p&gt;

&lt;p&gt;After digging around the documentation, I found a way to solve this problem as below:-&lt;/p&gt;

&lt;p&gt;1.Download the cypress zip file for the version you want to install from the official cypress website&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx8b41t76u8bam6nw0mx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx8b41t76u8bam6nw0mx3.png" alt="Download Cypress zip file from Official Cypress Website"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Set the &lt;strong&gt;CYPRESS_INSTALL_BINARY&lt;/strong&gt; to the cypress zip location that you've downloaded at .npmrc or you can use npm set command to set the variable.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set CYPRESS_INSTALL_BINARY in .npmrc
```
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CYPRESS_INSTALL_BINARY=/path/to/cypress.zip&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
- Set CYPRESS_INSTALL_BINARY using npm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;npm config set CYPRESS_INSTALL_BINARY /path/to/cypress.zip&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
3.Use **npm install** command to install the cypress.Then it will install the downloaded cypress zip instead of downloading from the source.

- Install cypress with npm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;npm install --save-dev cypress&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Thank you and see you next time :)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>webdev</category>
      <category>cypress</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
