# Yarn

En 2016, face à l'instabilité, l'imprédictibilité, la lenteur, l'indéterminisme et le manque de sécurité d'NPM 💥, Facebook décide de publier en open-source une alternative à NPM nommée **fbkpm**.

En quelques mois, **fbkpm** devient **kpm** puis finalement **Yarn.**\
Yarn atteint alors très rapidement un bon niveau de stabilité puis une forte adoption par la communauté JavaScript *(fortement déçue par NPM)* début 2017 avant même de passer en version 1.0.0 plus tard dans l'année.

Yarn a beaucoup inspiré les dernières versions d'NPM qui progresse tranquillement en suivant les traces laissées par Yarn 🐈.

La liste des modules disponibles est accessible sur [https://yarnpkg.com](https://yarnpkg.com/) et <https://www.npmjs.com>.

{% hint style="info" %}
Nous vous recommandons d'utiliser yarnpkg.com dont les performances sont impressionnantes grâce à [Algolia](https://www.algolia.com/).

Essayez par vous même !
{% endhint %}

## Installation Yarn

{% hint style="danger" %}
Sur windows... <https://yarnpkg.com/en/docs/install#windows-stable>
{% endhint %}

... ou sur un système qui fonctionne :

```bash
npm install --global yarn
```


---

# Agent Instructions: 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:

```
GET https://guide-angular.wishtack.io/tools/yarn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
