Hi Friends,
I have just started my react native fundamental course. I am trying to create a basic project and run in the browser with the help of expo. I am getting below error:
npm start
start
expo start
Starting project at D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt
Developer tools running on http://localhost:19002
Opening developer tools in the browser…
npm ERR! code 1
npm ERR! path D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c expo start
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SESA435441\AppData\Local\npm-cache_logs\2021-03-14T08_56_52_330Z-debug.log
PS D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt>
The Log file contains below error:
0 verbose cli [
0 verbose cli ‘C:\Program Files\nodejs\node.exe’,
0 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
0 verbose cli ‘start’
0 verbose cli ]
1 info using npm@7.5.1
2 info using node@v15.8.0
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 5ms
5 timing config:load:builtin Completed in 5ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt.npmrc Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\SESA435441.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:C:\Users\SESA435441\AppData\Roaming\npm\etc\npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 11ms
19 verbose npm-session 172d3b5213db1b32
20 timing npm:load Completed in 22ms
21 timing command:run-script Completed in 3485ms
22 timing command:start Completed in 3491ms
23 verbose stack Error: command failed
23 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\index.js:64:27)
23 verbose stack at ChildProcess.emit (node:events:378:20)
23 verbose stack at maybeClose (node:internal/child_process:1067:16)
23 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
24 verbose cwd D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt
25 verbose Windows_NT 10.0.18363
26 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “start”
27 verbose node v15.8.0
28 verbose npm v7.5.1
29 error code 1
30 error path D:\Mathew\Personal Doc\react learning\CodeWithMosh\DoneWithIt
31 error command failed
32 error command C:\WINDOWS\system32\cmd.exe /d /s /c expo start
33 verbose exit 1
Thanks for the help.