pinecone-io / pinecone-rag-demo-azd

MIT License
1 stars 1 forks source link

Fail to run the command `npm run env:init` #3

Closed zhangjiale-64 closed 3 months ago

zhangjiale-64 commented 4 months ago

Describe the issue: Run command npm run env:init in Windows (bash) ,Devcontainer and Codespaces, get error as follow: image

Repro Steps:

  1. Run git clone https://github.com/pinecone-io/pinecone-rag-demo-azd.git
  2. Run cd pinecone-rag-demo-azd
  3. Run npm i
  4. Run npm run env:init

Environments:

Expected behavior:

Running the command npm run env:init can successfully create the ".env.local" file.

@hemarina and @cwaddingham for notification.

cwaddingham commented 4 months ago

@zhangjiale-64 please be sure you have set the required environment variables and secrets, either in your local environment or in your Github project. Please see the README.md for the full list of required variables.

zhangjiale-64 commented 4 months ago

@zhangjiale-64 please be sure you have set the required environment variables and secrets, either in your local environment or in your Github project. Please see the README.md for the full list of required variables.

@cwaddingham please update the README.md to include all required environment variables and resources, such as Pinecone and OpenAI services. Include links to relevant documentation or registration pages to assist users in setting up. After I have configured the required environment variables, run the azd deploy command, get error as follow: image image

Repro Steps:

  1. Run git clone https://github.com/pinecone-io/pinecone-rag-demo-azd.git
  2. Run cd pinecone-rag-demo-azd
  3. Run npm i
  4. Run npm run env:init
  5. Run azd auth login
  6. Run azd provision
  7. Run azd deploy

Environments:

cwaddingham commented 4 months ago

I've added the environment variables to the README.md file, please review, set in your local environment or fork, and try again.

For convenience they are:

gkulin commented 4 months ago

@zhangjiale-64 @v-xuto were you able to successfully run npm run env:init after configuring the required env variables Cory provided?

zhangjiale-64 commented 3 months ago

@zhangjiale-64 @v-xuto were you able to successfully run npm run env:init after configuring the required env variables Cory provided?

Sorry for the delayed response. This issue has been fixed and I will close it.