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

Getting husky: not found error on importing forked langchainjs #3375

Closed
codenameakshay opened this issue Nov 22, 2023 · 4 comments
Closed

Getting husky: not found error on importing forked langchainjs #3375

codenameakshay opened this issue Nov 22, 2023 · 4 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@codenameakshay
Copy link
Contributor

I forked langchainjs and made some changes in it. Then I wanted to test it on my local project, so I imported it with the following line in my package.json -

{
  "dependencies": {
    "langchain": "git+https://github.com/codenameakshay/langchainjs#5ecb788",
  },
}

Now when I run the command yarn I get the following output ->

image

I get husky: not found error.

I tried importing the latest 0.0.196 version, and yarn command executes successfully.

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Nov 22, 2023
Copy link

dosubot bot commented Nov 22, 2023

🤖

Hello @codenameakshay,

Nice to meet you! I'm Dosu, a bot here to assist you with your issues, answer any questions, and help you contribute to the langchainjs project. While we're waiting for a human maintainer, feel free to ask me anything related to your problem. I'm here to help!

The husky: not found error you're encountering is likely due to husky not being listed as a dependency in your package.json file. Husky is a tool used for managing git hooks, and it's often used in development environments to enforce code quality checks before commits or pushes.

If the forked version of langchainjs you're trying to import relies on husky, you'll need to add it to your package.json file. You can do this by running npm install --save-dev husky in your project directory, or by manually adding it to your devDependencies:

{
  "devDependencies": {
    "husky": "^7.0.4"
  }
}

After adding husky to your package.json, run npm install to install the new dependency. This should resolve the husky: not found error.

As for your question about additional dependencies in the forked version of langchainjs, I wasn't able to find any information in the repository. It's possible that there are additional dependencies, but without more information, it's hard to say for sure. If you're still encountering issues after adding husky as a dependency, please provide more details about the changes you made in your forked version of langchainjs.

Sources

@codenameakshay
Copy link
Contributor Author

I added "husky": "^7.0.4" in the devDependencies, but I still get the error on running yarn command.

image

@jacoblee93
Copy link
Collaborator

This was today?

@jacoblee93
Copy link
Collaborator

Dropped husky in #3383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants