> For the complete documentation index, see [llms.txt](https://web-dev-guide.wishtack.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-dev-guide.wishtack.io/tools/npm.md).

# NPM

**NPM&#x20;*****(Node Package Manager)***  is the official Node.js package manager.

It is automatically installed with Node.js and is used to handle JavaScript *(browser & Node.js)* dependencies.

> For those who knew [bower](https://bower.io/), well, it's dead.

NPM allows:

* Dependencies management *(just like apt, gem, maven, nugget, pip, yum...).*
* JavaScript modules creation and publishing.
* Download and install of dependencies depending on a module's dependencies description.
* Sharing entry point scripts with developers and machines *(e.g.: Continuous Integration)* like `build`, `debug`, `deploy`, `test` etc...

We will use NPM once, to install [Yarn](/tools/yarn.md)...

... because it's better *(Cf.* [*Yarn*](/tools/yarn.md)*)*.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://web-dev-guide.wishtack.io/tools/npm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
