How to change it to use yarn instead of npm

I am working on an App which is created by `hs project create` command. The app project is inside a mono-repo managed by `yarn`.

When I use `hs project install-deps` it tries to use `npm` as package manager. I want this project to be part of my mono-repo. Is there a way to configure it to use `yarn`? BTW I am using `yarn@4` which doesn’t have `node_modules` folder.

Hi @JZhao, I hope that you are well!
Thanks for reaching out to the HubSpot Community!
I recommend posting this as a feature request in the Ideas Forums for official guidance on yarn/monorepo support.
In the meantime, let’s consult our Top Experts: Hi @Anton, @SteveHTM and @evaldas can you think of workarounds to help @JZhao, please?
Thanks so much and have a beautiful day! :sun_with_face:
Bérangère

Hey @JZhao, getting back to you on this!
Here are a few helpful workaround options you can try in the meantime:

- You can skip running hs project install-deps and instead manually run yarn install in your individual project directories.
- Another approach is to manage your dependencies at the monorepo root using Yarn workspaces, then simply exclude the HubSpot project’s dependencies from the CLI command.
Just a quick note: since Yarn 4 uses Plug’n’Play (PnP) and doesn’t create a node_modules folder, you might need to double-check compatibility with HubSpot’s build process, as it may expect the traditional node_modules structure.
If you have any questions, please feel free to ask, we are happy to help! :orange_heart:
Have a lovely day!
Bérangère