# Agent keeps using npm even tough the repo uses yarn

**URL:** <https://forum.cursor.com/t/agent-keeps-using-npm-even-tough-the-repo-uses-yarn/55077>\
**Category:** Help\
**Created:** [February 25, 2025, 8:16pm UTC](https://forum.cursor.com/t/agent-keeps-using-npm-even-tough-the-repo-uses-yarn/55077 "2025-02-25T20:16:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreataglia](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/andreataglia/32/4492_2.png) [@andreataglia](https://forum.cursor.com/u/andreataglia)\
**Post date:** [February 25, 2025, 8:16pm UTC](https://forum.cursor.com/t/agent-keeps-using-npm-even-tough-the-repo-uses-yarn/55077/1 "2025-02-25T20:16:16Z")

</div>

When generating commands, the agent won’t pick up the right package manager. i have some cursor rules but i guess they’re not getting picked up correctly…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:30am UTC](https://forum.cursor.com/t/agent-keeps-using-npm-even-tough-the-repo-uses-yarn/55077/2 "2026-06-18T10:30:04Z")

</div>

Closed on June 18, 2026, 10:30am UTC


