How to make Cursor remember my Node.js package manager?

I use Bun for managing my Node.js packages, but whenever one of the prompts I give involves installing a new package, the AI model recommends using npm.

Granted, if I cancel the command, it can then figure out that I use Bun. But the AI doesn’t remember my preference for Bun. It always fumbles with npm first.

How to make Cursor always use Bun for installing packages?

You can create a rule telling it to always use bun instead of npm

1 Like

Thanks for your answer @msfeldstein.

It would be nice if Cursor suggested the user to apply a rule for package managers. It should be a common need to default to the user’s package manager when suggesting installation commands like npm install.

You’re right we should do this automatically, similar to how we put your operating system in the prompt

1 Like