You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When trying to initialize Husky in a new project using bun as the package manager, I encounter a TypeError. The error message suggests that the npm_config_user_agent environment variable is undefined, and the script is trying to call the split method on it.
Steps to Reproduce:
Create a new project directory
Initialize git with git init
Install husky with bun add --dev husky
Try to initialize husky with bunx husky init
Expected Result:
Husky initializes successfully and creates the necessary hooks.
Actual Result:
Initialization fails with the following error:
Additional Context:
This issue occurs even in a fresh project following the steps provided in the Husky Get Started Guide.
The text was updated successfully, but these errors were encountered:
Issue Type: Bug
Troubleshoot Checklist:
Context:
Description:
When trying to initialize Husky in a new project using bun as the package manager, I encounter a TypeError. The error message suggests that the
npm_config_user_agent
environment variable is undefined, and the script is trying to call thesplit
method on it.Steps to Reproduce:
git init
bun add --dev husky
bunx husky init
Expected Result:
Husky initializes successfully and creates the necessary hooks.
Actual Result:
Initialization fails with the following error:
Additional Context:
This issue occurs even in a fresh project following the steps provided in the Husky Get Started Guide.
The text was updated successfully, but these errors were encountered: