Skip to content

Scripts index-data can't read the Node.js path correctly, when running azd up on Windows #141

@v-jiaodi

Description

@v-jiaodi

Describe the issue:
After running azd up , click web link to ask question on Windows, get error as follow:
image
By checking the logs of azd up, it was found that there were error logs causing the above issue.

image

Through investigation, it was found that the installation path of nodejs cannot be read normally. For Windows environment, nodejs is installed in the folder Program Files by default. This folder name contains spaces, which causes a reading error.

Repro Steps:

  1. Run azd auth login
  2. Run azd init -t azure-search-openai-javascript
  3. Run azd up

Environment:

  • OS: Windows

Expected behavior:
Run azd up can pass without error logs.

@sinedied and @charris-msft for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions