Cannot find module '../lib/theia'

Hi. I am not able to start pre-built Theia instance on Alpine Linux.
Tried to build using Ubuntu 20.04 and documentation
While I am able to start Theia on Ubuntu, I get the following error while starting the same instance on Alpine Linux:

yarn run v1.22.4
$ /root/theia/node_modules/.bin/theia start
    throw err;

Error: Cannot find module '../lib/theia'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/root/theia/node_modules/.bin/theia:2:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
error Command failed with exit code 1.
info Visit for documentation about this command.

My package.json:


@ivan770 can you verify that you have the necessary prerequisites listed here. This is the official source of the documentation, the website might be outdated so we will need to adjust.

Thanks for response! Fixed by launching using
node src-gen/backend/main.js

Error: Cannot find module ‘…/lib/theia’

This is provided by @theia/cli, a dev-dependency. I have seen this error when the app is built using yarn --production, which strips dev-dependencies. Not if this dis what’s happening here, just a theory. You can still start the app directly, as you have done, without using the theia CLI.