Я видел много блогов и ответов сообщества. Все говорили, чтобы установить прокси. В моей системе у меня нет настроек прокси. Также я перепробовал все ответы из разных источников. Ниже приведена строка ошибки.
109 silly pacote range manifest for whatwg-fetch@^3.0.0 fetched in 76090ms
110 silly resolveWithNewModule whatwg-fetch@3.0.0 checking installable status
111 timing stage:rollbackFailedOptional Completed in 1ms
112 timing stage:runTopLevelLifecycles Completed in 380863ms
113 verbose type system
114 verbose stack FetchError: request to https://registry.npmjs.org/hermes-engine/-/hermes-engine-0.4.1.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:8080
114 verbose stack at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
114 verbose stack at ClientRequest.emit (events.js:315:20)
114 verbose stack at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
114 verbose stack at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
114 verbose stack at runMicrotasks (<anonymous>)
114 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
115 verbose cwd D:\Learning\ReactNative\MP
116 verbose Windows_NT 10.0.18363
117 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-native@latest" "--global" "--prefix" "C:\\Users\\Hxtreme\\AppData\\Roaming\\npm-cache\\_npx\\3876" "--loglevel" "error" "--json"
118 verbose node v14.1.0
119 verbose npm v6.14.4
120 error code ECONNREFUSED
121 error errno ECONNREFUSED
122 error FetchError: request to https://registry.npmjs.org/hermes-engine/-/hermes-engine-0.4.1.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:8080
122 error at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
122 error at ClientRequest.emit (events.js:315:20)
122 error at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
122 error at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
122 error at runMicrotasks (<anonymous>)
122 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
122 error FetchError: request to https://registry.npmjs.org/hermes-engine/-/hermes-engine-0.4.1.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:8080
122 error at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
122 error at ClientRequest.emit (events.js:315:20)
122 error at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
122 error at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
122 error at runMicrotasks (<anonymous>)
122 error at processTicksAndRejections (internal/process/task_queues.js:97:5) {
122 error type: 'system',
122 error errno: 'ECONNREFUSED',
122 error code: 'ECONNREFUSED',
122 error parent: 'react-native'
122 error }
123 error If you are behind a proxy, please make sure that the
123 error 'proxy' config is set properly. See: 'npm help config'
124 verbose exit [ 1, true ]