BoundaryML / baml

BAML is a language that helps you get structured data from LLMs, with the best DX possible. Works with all languages. Check out the promptfiddle.com playground
https://docs.boundaryml.com
Apache License 2.0
1.42k stars 52 forks source link

BAML CLI Issue - Mac + Intel Chip + NPM #784

Open hellovai opened 4 months ago

hellovai commented 4 months ago

User attempted to:

npx baml-cli init

Had to manually run: npm i @boundaryml/baml-darwin-x64 first

greptile-apps[bot] commented 4 months ago

To resolve the issue with npx baml-cli init on Mac with Intel chip, update the package.json in the language_client_typescript directory to include the @boundaryml/baml-darwin-x64 package as a dependency. This ensures it is installed automatically.

  1. Open /engine/language_client_typescript/package.json.
  2. Add "@boundaryml/baml-darwin-x64": "latest" to the dependencies section.
{
  "dependencies": {
    "@boundaryml/baml-darwin-x64": "latest"
  }
}
  1. Save the file and run npm install to update the dependencies.

References

/engine/language_client_typescript/package.json /typescript/vscode-ext/packages/package.json

#### About Greptile This response provides a starting point for your research, not a precise solution. Help us improve! Please leave a ๐Ÿ‘ if this is helpful and ๐Ÿ‘Ž if it is irrelevant. [Ask Greptile](https://app.greptile.com/chat/github/boundaryml/baml/canary) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)
hellovai commented 4 months ago

Fix: we should add default optional dependencies for all packages in our package.json so users can run the CLI w/o installing baml