Starting frontend failed with exit code 127
egonsung opened this issue Β· comments
egonsung commented
I've recently updated Reflex to 0.4.9 and when I "reflex run" I come into the following error:
> dev
> next dev
sh: next: command not found
Run with --loglevel debug for the full log.
When I run with "--loglevel debug", I get this:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ App Running βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug: Running command: ['/Users/**/Library/Application Support/reflex/fnm/node-versions/v18.17.0/installation/lib/node_modules/npm/bin/npm-cli.js', 'run', 'dev']
Debug: Starting frontend
Debug:
Debug: > dev
Debug: > next dev
Debug:
Debug: sh: next: command not found
Does anyone know how this is fixed? It was working before the update. Thanks.
Nikhil Rao commented
Could you try to delete your .web
folder and try again? rm -r .web
within your app folder.
egonsung commented
Could you try to delete your
.web
folder and try again?rm -r .web
within your app folder.
Oh wow that worked! Thanks a lot, I've been searching for a solution all day. Thanks again.