-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Bug description
All my workspaces have errors withe opening the development server
that is running npm start for a React app etc
I react project I put npm start in the terminal and get this in all my React app
I my DRF I get a different set of errors.
in the React app I get this:
Starting the development server...
node:events:368
throw er; // Unhandled 'error' event
^
Error: spawn gp preview --external ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn gp preview --external',
path: 'gp preview --external',
spawnargs: [ 'http://localhost:3000' ]
}
npm notice
npm notice New major version of npm available! 8.0.0 -> 9.7.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.1
npm notice Run npm install -g npm@9.7.1 to update!
in the DRF it get this
gitpod /workspace/shot-caller-production-api (main) $ npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /workspace/shot-caller-production-api/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/workspace/shot-caller-production-api/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitpod/.npm/_logs/2023-06-13T00_29_10_111Z-debug.log
Steps to reproduce
run npm start

these are one I need right now
Workspace affected
https://gitpod.io/start/#amaranth-firefly-no299baq
Expected behavior
should open the app in the browser
instead it shows lots of errors
Example repository
Anything else?
All my workspaces are like this
