typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.98k stars 422 forks source link

Unable to start a Create react app with Hotel #336

Open glecetre opened 5 years ago

glecetre commented 5 years ago

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.

emmamones commented 5 years ago

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.