# NPM Install And Copilot Instructions

DevFeed: [NPM Install And Copilot Instructions](<https://devfeed.tech/articles/npm-install-and-copilot-instructions-28891.md>)

Original publisher: [Read original article](<https://glebbahmutov.com/blog/npm-install-and-copilot-instructions/>)

Author: Gleb Bahmutov

Published: 2025-12-30T05:00:00Z

Content type: tutorial

Language: en

Sources: [Gleb Bahmutov](<https://devfeed.tech/sources/gleb-bahmutov.md>)

Topics: [npm](<https://devfeed.tech/topics/npm.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Cypress](<https://devfeed.tech/topics/cypress.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>)

Tags: [advice](<https://devfeed.tech/tags/advice.md>), [ai](<https://devfeed.tech/tags/ai.md>), [code-completion](<https://devfeed.tech/tags/code-completion.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [npm](<https://devfeed.tech/tags/npm.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [process](<https://devfeed.tech/tags/process.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

This tutorial describes updating Copilot instruction files when adding npm dependencies, using a Cypress test for sorted inventory prices as an example. It compares Copilot's suggested assertion with a chai-sorted plugin and shows how instructions can guide Copilot toward a shorter, preferred assertion.

## Source excerpt

Here is something I have noticed about my projects and using Copilot lately. When I add a new NPM dependency, I also update the Copilot i