Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foal: not found #1232

Closed
francelwebdev opened this issue Sep 19, 2023 · 2 comments
Closed

foal: not found #1232

francelwebdev opened this issue Sep 19, 2023 · 2 comments
Labels

Comments

@francelwebdev
Copy link
Contributor

Hi @LoicPoullain ,
In some cloud provider, the packages inside devDependencies are not installed, so I get : foal: not found .
You should add the @foal/cli inside dependencies.

@LoicPoullain LoicPoullain added this to Backlog in Issue tracking via automation Sep 23, 2023
@LoicPoullain
Copy link
Member

The dependencies property normally only refers to dependencies imported inside the application code. This is why @foal/cli is marked as devDependencies.

I'd rather to keep it that way for this reason. If needed, it's still possible to move it to dependencies after the project is created so as to be supported by Cloud providers. 👍

Issue tracking automation moved this from Backlog to Done / Closed This Release Sep 23, 2023
@francelwebdev
Copy link
Contributor Author

Hi @LoicPoullain
The solution I finally used and which worked is the following:

  • I remove the NODE_ENV=production environment variable and then all packages inside the dependency and devDependency were installed.
  • So, to start the api, I used this command: NODE_ENV=production npm run start as custom start command.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Issue tracking
  
Done / Closed This Release
Development

No branches or pull requests

2 participants