Sorry, but I cannot install expo dependencies at this time

I am currently using nvm to switch between node versions 4.4.3 and 12.14.1. After switching to version 12.14.1, I tried to install expo and run a react-native project following the instructions here.

npm install -g expo-cli
expo init
npm start

However, when running npm start, I encountered the following error:

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz failed, reason: 
self signed certificate in certificate chain

I attempted to resolve this by following the steps outlined here and ran the command:

npm config set registry http://registry.npmjs.org/

Unfortunately, I am still encountering the same error. Any assistance would be greatly appreciated!

Additionally, I do not wish to disable strict-ssl as suggested:

npm set strict-ssl false

Answer №1

To avoid encountering the error, simply run the command below to deactivate strict ssl-mode:

npm set strict-ssl false

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The nodejs events function is being triggered repeatedly

I have been developing a CMS on nodejs which can be found at this link. I have incorporated some event hooks, such as: mpObj.emit('MP:FOOTER', '<center>MPTEST Plugin loaded successfully.</center>'); Whenever I handle this ...

Navigating through routes in node.js is a breeze

I am having trouble understanding why my routing is not working properly. Why am I getting a "resource not found" error when I define the URL pattern callback in the app.js file? app.get('/myroute', function(req, res) { res.send('Hello ...

Attention: Two children with identical keys were found, ""

In my current project, I am utilizing ReactJS, NextJS 14, Tailwind CSS, and Framer Motion. When working with React, it's essential to assign unique keys to each repeated child component. In my case, this requirement carries over to NextJS as well. To ...

My element is unexpectedly changing its properties

One puzzling issue I'm facing involves a component that retrieves an array from a parent prop, stores it in a state, makes modifications to the array, and then aims to send the modified version back up to the parent. The confusion arises when I obser ...

Guide to scraping a website using node.js, ASP, and AJAX

I am currently facing an issue where I need to perform web scraping on this specific webpage form. This webpage is dedicated to vehicle technical reviews, and you can try inputting the car license CDSR70 for testing purposes. As mentioned earlier, I am u ...

Passing props to a wrapped component when utilizing a higher order component in React

While exploring the react documentation, I came across a section on Higher-Order Components that included an example of logging props for a specific component. function logProps(WrappedComponent) { return class extends React.Component { componentWillR ...

Achieve the capability to upload multiple files in Next.js using the upload.io integration feature

I'm currently using upload.io for uploads and replicate.com for an AI model on a specific app. I am able to upload one picture, but unfortunately, I am encountering issues when trying to upload multiple pictures. Can anyone identify the problem here? ...

Setting up package.json to relocate node_modules to a different directory outside of the web application:

My web app is currently located in C:\Google-drive\vue-app. When I run the command yarn build, it installs a node_modules folder within C:\Google-drive\vue-app. However, since I am using Google Drive to sync my web app source code to Go ...

Use the Nodejs HTTP.get() function to include a custom user agent

I am currently developing an API that involves making GET requests to the musicBrainz API using node.js and express. Unfortunately, my requests are being denied due to the absence of a User-Agent header, as stated in their guidelines: This is the code sn ...

What is the best way to retrieve the current value of a React useState hook within a setInterval function while using Highcharts

import Error from 'next/error' import React, { useState, useEffect } from 'react' import Highcharts from 'highcharts' import HighchartsReact from 'highcharts-react-official' function generateChart() { const [co ...

Utilizing Handlebars with Passport.js to capture user input

Currently diving into the world of node.js with passport, handlebars and mysql as my tools of choice. The goal is to design a signup page that collects email address, password, first name, and last name. However, when using passport, it only accommodates ...

What is the safest way to convert a local file path to a file:// URL in Node.js?

In my node.js application, I am faced with the task of converting local file paths into file:// urls. After some research, I came across the File URI scheme on Wikipedia and I believe that there must be a solution out there or perhaps even an npm module t ...

Tips on accessing a specific value while customizing the Autocomplete feature in Material UI

I am working on implementing the autocomplete feature of Material UI, and I want to be able to capture the ID of the selected team when a selection is made. Currently, the code only fetches the name of the selected team. How can I retrieve the ID instead? ...

What strategies can I use to ensure that I can successfully send 3,000 requests to the Google Drive API using node.js without surpassing

I'm currently assisting a friend with a unique project he has in mind. He is looking to create 3000 folders on Google Drive, each paired with a QR code linking to its URL. The plan is to populate each folder with photos taken by event attendees, who ...

Is there a way to organize Redux store slices within the same category?

I'm currently learning about Redux and Redux toolkit, and I’m working on organizing my store state. My goal is to group multiple slices of the store together, but I'm facing challenges with TypeScript acceptance. Here's what I'm tryi ...

Encountering difficulties retrieving form data in NodeJS Express

I'm currently facing an issue with my form where I am trying to fetch data from the server using ejs templating in my node app. Everything seems fine as there are no errors displayed, but unfortunately, I am unable to retrieve the data in the console. ...

Creating a Node Express Mongoose API that allows users to search for data using multiple optional parameters

I have created a single search input box where users can search by employee id, first name, or last name. The employee id is stored as a string in my mongo model called profile which contains all the employee information. My current setup involves using n ...

What's stopping me from using useState() to assign API data to an array?

I have a question regarding my app that makes use of the Movies API. I am making an API request and then passing the data to an array using the useState hook. Here is a snippet of my code: const App = () => { type MovieType = { rate: string, ...

What is the best way to remove table cells from a TableBody?

Currently, I am in the process of designing a table to display data retrieved from my backend server. To accomplish this, I have opted to utilize the Table component provided by Material UI. The data I retrieve may either be empty or contain an object. My ...

top technique for chaining promises in a sequence

At the moment, I have several functions that return promises like the example below: function action_one(){ return new Promise((resolve, reject)->{ ... }); } I am looking for a way to wait for one promise to finish before moving on to t ...