Hello i am not really sure how to explain my problem or how to ask for help.
But am going to try it anyway lately when i create a react app it installs like normal i use the npx command for that. But from the moment i use npm start i get this error (first pic). Which says it has nothing wrong with node js/npm so i suspected it was something about the react app dependency that was wrong. When i downgrade to a older version of react scripts it works but the newest version 16.13.1 doesn’t work even tho i use this version of react on my windows laptop. In case it helps to solve my issue here is the error log that npm generates (error log under the fist pic) i hope this helps to solve my issue!
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Users\Gebruiker\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘start’
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v13.12.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle test11@0.1.0~prestart: test11@0.1.0
6 info lifecycle test11@0.1.0~start: test11@0.1.0
7 verbose lifecycle test11@0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle test11@0.1.0~start: PATH: C:\Users\Gebruiker\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\BeCode\zReact\test11\node_modules.bin;C:\Python38\Scripts;C:\Python38;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd;C:\xampp\php;C:\composer;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs;C:\Users\Gebruiker\AppData\Local\Microsoft\WindowsApps;E:\Users\Gebruiker\AppData\Local\Programs\Microsoft VS Code\bin;";D:\xampp\php\php-7.4.1";C:\Users\Gebruiker\AppData\Roaming\Composer\vendor\bin;C:\Users\Gebruiker\AppData\Roaming\npm
9 verbose lifecycle test11@0.1.0~start: CWD: E:\BeCode\zReact\test11
10 silly lifecycle test11@0.1.0~start: Args: [ ‘-c’, ‘react-scripts start’ ]
11 silly lifecycle test11@0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle test11@0.1.0~start: Failed to exec start script
13 verbose stack Error: test11@0.1.0 start: react-scripts start
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Users\Gebruiker\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (C:\Users\Gebruiker\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid test11@0.1.0
15 verbose cwd E:\BeCode\zReact\test11
16 verbose Windows_NT 10.0.18363
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Users\Gebruiker\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “start”
18 verbose node v13.12.0
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error test11@0.1.0 start: react-scripts start
22 error Exit status 1
23 error Failed at the test11@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 ]