Skip to content

Npm is not working give error every time i run #2569

@raja257

Description

@raja257

Creating a new React app in C:\Users\ML\reactApp\my-app-project\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/react-dom failed, reason: connect ECONNREFUSED 127.0.0.1:8080npm ERR! at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/react-dom failed, reason: connect ECONNREFUSED 127.0.0.1:8080
npm ERR! at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! message: 'request to https://registry.npmjs.org/react-dom failed, reason: connect ECONNREFUSED 127.0.0.1:8080',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack: 'FetchError: request to https://registry.npmjs.org/react-dom failed, reason: connect ECONNREFUSED 127.0.0.1:8080\n' +
npm ERR! ' at ClientRequest. (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:315:20)\n' +
npm ERR! ' at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)\n' +
npm ERR! ' at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)\n' +
npm ERR! ' at processTicksAndRejections (internal/process/task_queues.js:97:5)'
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ML\AppData\Roaming\npm-cache_logs\2020-03-31T17_16_44_476Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting my-app/ from C:\Users\ML\reactApp\my-app-project
Done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions