Trouble running docker

Hi Ken, thanks for your work, I just started watching videos but I have a problem while testing in the browser: http: // localhost: 8100 / doesn’t display anything.

The System Check indicates that everything is ok (NodeJS is correctly installed) but in the Docker logs it seems to be missing two js files (see image) which cause it to crash.

What is the best way to solve this? Thank you


Hi Nicolas, welcome to the forum!

This might be a question better for @Teodor as a package appears to be missing.

My suggestion is to try a redeploy (Just click on Deploy) again, to see if that fixes.

You might also try to (re)install the package from the error. Using the Web Server Terminal, try this command

npm install cors

EDIT:
Better answer:

2 Likes

Thank you ! It worked to do npm install cors (plus other commands recommended by the terminal: audit, update etc …)

2 Likes

Well we actually have a button for this on the bottom toolbar so packages get installed/updated.

And the cors module is auto added to your package.json so usually just hitting the npm install button should do fine :slight_smile:

2 Likes