Open hellovai opened 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.
/engine/language_client_typescript/package.json
."@boundaryml/baml-darwin-x64": "latest"
to the dependencies
section.{
"dependencies": {
"@boundaryml/baml-darwin-x64": "latest"
}
}
npm install
to update the dependencies./engine/language_client_typescript/package.json /typescript/vscode-ext/packages/package.json
Fix: we should add default optional dependencies for all packages in our package.json so users can run the CLI w/o installing baml
User attempted to:
npx baml-cli init
Had to manually run:
npm i @boundaryml/baml-darwin-x64
first