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

Update default gptscript binary path #36

Merged
merged 1 commit into from
May 17, 2024

Conversation

jordojordo
Copy link
Contributor

Fix #35

After installing @gptscript-ai/gptscript as a library, the gptscript binary is located in:

./node_modules/@gptscript-ai/bin/gptscript

The default location set in getCmdPath only moves up one directory causing the route to be:

./node_modules/@gptscript-ai/gptscript/bin/gptscript

The incorrect location will cause an ENOENT error whenever calling a method that uses the gptscript binary:

Error: spawn <app>/node_modules/@gptscript-ai/gptscript/bin/gptscript ENOENT

This PR updates the default route by moving up one extra directory.

@thedadams
Copy link
Contributor

@jordojordo Thanks for your contribution!

@thedadams thedadams merged commit e4d59f3 into gptscript-ai:main May 17, 2024
4 of 5 checks passed
@jordojordo
Copy link
Contributor Author

@thedadams Thanks for building this tool!

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

Successfully merging this pull request may close these issues.

Node child_process throws ENOENT after upgrade to 0.6.0
2 participants