Skip to content

react-scripts start events.js:187 throw er; // Unhandled 'error' event #4860

@kerberos001

Description

@kerberos001

I am new to React when executing the command (create-react-app my-app) the structure was created correctly but when executing (npm install) I get this error:

Attempting to bind to HOST environment variable: linux-7mp4
If this was unintentional, check that you haven't mistakenly set it in your shell.
Learn more here: https://bit.ly/CRA-advanced-config

events.js:187
throw er; // Unhandled 'error' event
^

Error: getaddrinfo ENOTFOUND linux-7mp4
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
Emitted 'error' event on Server instance at:
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1484:12)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:17) {
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'linux-7mp4'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pruebalogin@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pruebalogin@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

---> 2019-11-19T00_48_30_122Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node12', '/usr/bin/npm-default', 'start' ]
2 info using npm@6.12.0
3 info using node@v12.13.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle pruebalogin@0.1.0prestart: pruebalogin@0.1.0
6 info lifecycle pruebalogin@0.1.0
start: pruebalogin@0.1.0
7 verbose lifecycle pruebalogin@0.1.0start: unsafe-perm in lifecycle true
8 verbose lifecycle pruebalogin@0.1.0
start: PATH: /usr/lib64/node_modules/npm12/node_modules/npm-lifecycle/node-gyp-bin:/home/jorge/Documents/WORKSPACE/pruebalogin/node_modules/.bin:/home/jorge/bin:/usr/local/bin:/usr/bin:/bin
9 verbose lifecycle pruebalogin@0.1.0start: CWD: /home/jorge/Documents/WORKSPACE/pruebalogin
10 silly lifecycle pruebalogin@0.1.0
start: Args: [ '-c', 'react-scripts start' ]
11 silly lifecycle pruebalogin@0.1.0start: Returned: code: 1 signal: null
12 info lifecycle pruebalogin@0.1.0
start: Failed to exec start script
13 verbose stack Error: pruebalogin@0.1.0 start: react-scripts start
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib64/node_modules/npm12/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess. (/usr/lib64/node_modules/npm12/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid pruebalogin@0.1.0
15 verbose cwd /home/jorge/Documents/WORKSPACE/pruebalogin
16 verbose Linux 5.3.8-1-default
17 verbose argv "/usr/bin/node12" "/usr/bin/npm-default" "start"
18 verbose node v12.13.0
19 verbose npm v6.12.0
20 error code ELIFECYCLE
21 error errno 1
22 error pruebalogin@0.1.0 start: react-scripts start
22 error Exit status 1
23 error Failed at the pruebalogin@0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

For your help thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions