All right, look carefully at this:
{
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ]
}
errno: 'ENOENT'
means the file or directory is not foundpath: 'cmd'
denotes the executable cmd
was not found locally or globally while spawning process cmd
via Node.js$PATH
. The executables inside directories mentioned in the $PATH
can be accessed from anywhere on your system. 'C:\Windows\system32'
is a path where windows keeps some critical executables. cmd.exe
is one of them. Somehow the path was deleted from the $PATH variable. In order to fix the problem, an easy solution is:
start-menu
-> search
and type environment variables
and open itC:\Windows\system32
to it and press OK. If you're on Windows 7 or below, add a semi-colon ;
before it