Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Not able to install npm package inside container with mentioned command #16

Open
Mr-Usman opened this issue Jun 23, 2022 · 2 comments
Open

Comments

@Mr-Usman
Copy link

Mr-Usman commented Jun 23, 2022

Hi, I am trying to install npm packages with the mentioned command but It is spitting out errors of some environment variables. I am not sure why it is giving this error by running the command in this way

docker compose exec frontend yarn add @heroicons/react.

Although, I have a .env file in /the backend folder.

Error:

1 error(s) decoding: error decoding 'Ports': No port specified: 5432:<empty>

Node Version : 16.0.0
OS: Mac

@keremciu
Copy link
Contributor

keremciu commented Jun 23, 2022

Hi, I am trying to install npm packages with the mentioned command but It is spitting out errors of some environment variables. I am not sure why it is giving this error by running the command in this way

docker compose exec frontend yarn add @heroicons/react.

Although, I have a .env file in /the backend folder.

Error:

1 error(s) decoding: error decoding 'Ports': No port specified: 5432:<empty>

Node Version : 16.0.0 OS: Mac

Hey @Mr-Usman which folder are you running this command?

@Mr-Usman
Copy link
Author

Mr-Usman commented Jun 23, 2022

@keremciu I am running this command from within the backend directory. I tried to run it from root and frontend directory but it didn't work from there.

https://ibb.co/TmHvfrh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants