theia-ide / theia-apps

Theia applications examples - docker images, desktop apps, packagings
Apache License 2.0
1.04k stars 345 forks source link

error Couldn't find a package.json file #424

Closed juanbits closed 3 years ago

juanbits commented 3 years ago

some montnhs ago i deployed theia-python docker in a centos server

today i tried to do it with this command in another centos server docker run -it -p 3000:3000 -v "/home:/home:cached" theiaide/theia-python

but now i got this error:

Status: Downloaded newer image for theiaide/theia-python
yarn run v1.22.4
error Couldn't find a package.json file in "/home/theia"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

any idea to fix it?

marcdumais-work commented 3 years ago

Hi @juanremi ,

I think there might be an issue with the path where you mount the docker volume. In the container it will hide directory /home/theia, where the Theia application resides (arguably maybe not the best place to store it).

You could instead do something like to avoid this issue:

docker run -it -p 3000:3000 -v "/home/<your_user>:/home/project:cached" theiaide/theia-python
stale[bot] commented 3 years ago

This contribution has been automatically marked as stale due to inactivity, and it will be closed if no further activity occurs. Thank you for contributing to Theia!