When trying to establish Expo cli through npm install, the process gets stuck specifically during the extraction phase of

My attempt to install Expo for React Native using npm install -g expo-cli has been unsuccessful as the installation process pauses indefinitely at

extract:rxjs: still extract <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5d7ddcfd6e5908b908b97">[email protected]</a> extracted to c:/...

Some steps I have taken: 1. Running the command with administrator privileges. 2. Attempted the installation three times in a day, only to face the same pause each time.

Here are my system details: Node Version: 10.15.3 NPM Version: 6.4.1 Operating System: Windows 7

I am seeking advice on how to resolve this issue. Any suggestions?

Answer №1

After two days of troubleshooting, I finally found a solution.

It remains a mystery why the installation process halts on my primary work computer (referred to as PC1). To resolve this issue, I decided to attempt the installation on a secondary PC (PC2) also running Windows 7, and surprisingly, it installed without any delays.

To transfer the successful installation from PC2 to PC1, I simply copied the npm folder from one device to the other. The pathway to the npm folder is as follows: Users >> username >> AppData >> Roaming >> npm (I attempted global installations on both machines).

Ultimately, npm efficiently downloads the necessary components and stores them in a designated folder.

Answer №2

Here are the instructions to follow:

  • To start, execute npm cache verify.

  • Next, launch Windows PowerShell with administrative privileges and enter the command

    npm install expo-cli --global --no-optional
    .

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

Error when trying to add style-loader in Vue.js 2 due to webpack installation issue

My task is to set up the style-loader in order to load import 'bootstrap-icons/font/bootstrap-icons.css'. However, when I run npm install style-loader, I encounter the following error message: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to re ...

The error at events.js:154 was not properly handled and caused an 'error' event to be thrown

Encountered an error while creating an Angular 2 application. I followed the instructions from this link to create a sample application. Upon running npm start Received the following error, events.js:154 throw er; // Unhandled 'error' even ...

Leveraging bootstrap sass (npm) in conjunction with gulp

After cloning the repository from https://github.com/HosseinKarami/fastshell, I found that everything was working perfectly. I decided to switch from compass to gulp in fastshell for a faster experience. However, I am now unsure of how to extend it and in ...

Verify if the client's list of users or the User ID possesses a certain role name

How can I determine if a user in client.users() has a particular role assigned by their rolename? I don't want to use msg.member.roles.find(), rather looking for a solution that involves using client.users() or including the user id. if (client.users ...

Learn how to implement AuthContext and createDataContext in React Native Expo development using TypeScript

AuthContext.tsx import createDataContext from './createDataContext'; import serverApi from '../api/server'; const authReducer = ({state, action}: any) => { switch(action.type){ default: return state; } } ...

During the build process, Fontawesome is causing a 401 unauthorized error

After smoothly using fontawesome for several months without any problems, I encountered an error today while attempting to push my app to production. An unexpected error occurred: "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.1.1/fontawesom ...

Experiencing an issue with react-bootstrap when running npm start

Recently, I encountered some issues while running a react-js app. However, there were no problems during the npm install process. Package Versions: react: "^16.10.2" react-bootstrap: "^1.0.0-beta.16" I attempted the following steps to resolve the issues ...

Navigating the waters of importing npm modules with typescript, gulp, and browserify is a skill

I'm facing challenges with performing some fundamental tasks such as importing packages that I installed using NPM. Despite conducting extensive research online and following various tutorials, I have been unable to achieve success. Here is my current ...

Error in NPM when trying to run the command npm run watch on parameter 1 for scss

I encountered an error while working on webpack.mix.js file. The error message indicates that I am missing a required parameter 1 in the scss section of my code: > @ watch /media/ricardo/FILES/projects/Laravel/costurita-etl > npm run development -- ...

What is the best way to distribute components between two NextJS projects?

Confused about the best way to share ReactJs components between two NextJs applications - one for e-commerce and the other for a manager portal. In the e-commerce app, there are various UI components that I want to reuse in the manager portal. Considering ...

How can I resolve the "peerinvalid" error while running NPM install?

My CircleCI suddenly stopped working today due to a peer-invalid issue that has been causing the problem. The error message displayed is as follows: src/index.js -> lib/index.js npm ERR! Linux 3.13.0-91-generic npm ERR! argv "node" "/home/ubuntu/nvm/v0 ...

Troubleshooting NPM Problems on MacOS

While working on my development tasks in VS Code, suddenly I encountered errors with my npm install commands. The error messages looked like this: ⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ rollbackFailedOptional: verb npm-sessio ...

Problem with using puppeteer to interact with a dropdown menu

I have a project in which I am utilizing puppeteer to create a bot that can automatically check for my college homework assignments. The problem I am encountering is that when the bot tries to click on a dropdown menu, it fails and I receive an error messa ...

Whenever I try to execute "gulp" in the terminal, why am I encountering the message "Error: unable to locate module sass"?

Having an issue with running a gulp task on the terminal. When I try to run Terminal > Run Task... > gulp, it keeps showing me the message No gulp task found. Even when I manually type in gulp in the terminal, I still face the same error. which sass ...

The file "tfjs_binding.node" could not be located in the directory where @tensorflow is installed

After attempting to utilize certain functionalities of TensorFlow, I encountered an error indicating that "tfjs_binding.node" was not found in the @tensorflow installation folder. I made sure to install Python 2.7 as a prerequisite for TensorFlow and veri ...

Error encountered when trying to connect Solidity contract with React Next.js, issue with fetching contract through NPM package

My goal is to create an NFT marketplace, but I've encountered a problem with npm run dev. It was working fine yesterday, but now it's not letting me fetch functions from NFTMarketPlace.sol after exiting VSCode. I tried deleting node_modules & ...

ReactJS components enhanced with bootstrap-table JS extension

I recently downloaded the bootstrap-table package from NPM (npmjs.com) for my ReactJS application. It provides great features for setting up tables and datagrids. However, there are additional js and css files needed to enhance its functionality. These inc ...

Steps for calling a function in index.js using Node.js

I am just starting to learn about NodeJS and I have a question that might seem basic to some, but I would really appreciate some assistance here. Here is the content of my index.js file:- 'use-strict'; const { myauth } = require('./src/au ...

[VUE Warning]: The custom element <navigation-drawer> is not recognized - have you properly registered the component?

After importing two components from a custom library, I encountered an issue. When I run "npm run serve", no errors appear in the command prompt. However, upon opening localhost, all I see is a white screen and the console displays the following error mess ...

"Exploring the world of npm packages alongside the powerful angular-cli tool

Is it better to package angular2 components in an npm module with the source files (*.ts, *.css, *.html) or the webpack compiled version for use in applications compiled with angular-cli@webpack? What should actually be published in the npm package? The r ...