T
T
Terroris3372021-07-16 16:35:33
React Native
Terroris337, 2021-07-16 16:35:33

Why is the dependency not being installed?

Good day.
I created a React Native project via expo with an empty template and I can't download the dependency via mpn install.
My package.json:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "~42.0.1",
    "expo-status-bar": "~1.0.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-web": "~0.13.12"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0"
  },
  "private": true
}

When trying to download the "react-native" dependency, it throws an error:
npm ERR!   message: 'request to https://codeload.github.com/expo/react-native/tar.gz/sdk-42.0.0 failed, reason: connect ECONNREFUSED 127.0.0.1:443',
npm ERR!   type: 'system',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   stack: 'FetchError: request to https://codeload.github.com/expo/react-native/tar.gz/sdk-42.0.0 failed, reason: connect ECONNREFUSED 127.0.0.1:443\n' +
npm ERR!     '    at ClientRequest.<anonymous> (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-fetch-npm\\src\\index.js:68:14)\n' +
npm ERR!     '    at ClientRequest.emit (events.js:310:20)\n' +
npm ERR!     '    at TLSSocket.socketErrorListener (_http_client.js:426:9)\n' +
npm ERR!     '    at TLSSocket.emit (events.js:310:20)\n' +
npm ERR!     '    at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
npm ERR!     '    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
npm ERR!     '    at processTicksAndRejections (internal/process/task_queues.js:84:21)'
npm ERR! }

How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question