I am using ReactNAtive in linux, npm version 4.6.
what happens is that when I use the npm start command it throws some errors and does not start the server
logs:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart,
continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH:
/usr/lib/node_modules/npm/bin/node-gyp-
bin:/home/daniel/AwesomeProject/node_modules/
.bin:/usr/local/sbin:/usr/loc
al/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
10 verbose lifecycle [email protected]~start: CWD:
/home/daniel/AwesomeProject
11 silly lifecycle [email protected]~start: Args: [ '-c', 'react-native-
scripts start' ]
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: 'react-native-scripts
start'
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous>
(/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous>
(/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:920:16)
14 verbose stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:230:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/daniel/AwesomeProject
17 verbose Linux 4.10.0-35-generic
18 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
19 verbose node v6.11.3
20 verbose npm v4.6.1
21 error code ELIFECYCLE
22 error errno 1
23 error [email protected] start: 'react-native-scripts start'
23 error Exit status 1
24 error Failed at the [email protected] start script.
24 error This is probably not a problem with npm. There is likely
additional logging output above.
25 verbose exit [ 1, true ]