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

“grep: .env.local: No such file or directory ” and ”Need to install the following packages: [email protected] Ok to proceed? (y)“ #252

Open
cnisno1ok opened this issue Sep 19, 2024 · 1 comment

Comments

@cnisno1ok
Copy link

Before that, the first question, the explanation you gave me was Running just convex env set OLLAMA_HOST will set an environment variable in the convex backend. This env variable is pointing to the location where you're running ollama. If you're running it locally that's typically http://localhost:11434.

Can you show me the location and contents of.env.local in normal operation?

At the time I was using VMware, but now I'm running into the same problem with WSL2 and a new problem is Need to install the following packages: [email protected] Ok to proceed? (y)

Does this have anything to do with the npm version? My nodejs version is 18.20.4 and npm version is 10.7.0。

Then I typed y, which took a long time and I canceled it。

If I type n, the following error is reported:

npm error canceled
npm error A complete log of this run can be found in: /home/zlq/.npm/_logs/2024-09-19T11_23_56_545Z-debug-0.log
error: Recipe convex failed with exit code 1

If I run npm run dev directly, the problem is the same as above

I think I follow the steps strictly, but I don't know how to solve these

@ianmacartney
Copy link
Collaborator

ianmacartney commented Sep 22, 2024

You need to make sure you npm i and just convex dev / npm run dev before you can run npx convex env. Sorry the instructions don't make that clear - I can cut a PR in the future if you don't want to

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

No branches or pull requests

2 participants