typicode / hotel

đŸ© A simple process manager for developers. Start apps from your browser and access them using local domains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to start a Create react app with Hotel

glecetre opened this issue · comments

I have a pretty basic CRA app in /home/jeahel/dev/the-hive/myapp and I added it to Hotel with hotel add 'npm start' while my CWD was /home/jeahel/dev/the-hive/myapp. The server conf seems good:

{
  "cwd": "/home/jeahel/dev/the-hive/myapp",
  "cmd": "npm start",
  "env": {
    "PORT": 3000
  }
}

But when starting the server from Hotel, the toggle next to its name goes ON then OFF right away. No logging, no error, no mean to know what's happening.

I tried with hotel run and it works OK.

Note: I use the Fish shell.

i get the following errorreact-scripts start

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! crudrouterhooksaxios@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the crudrouterhooksaxios@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.