@samy-clivolt/create-pi-ag-ui 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/README.md +1 -28
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -34,22 +34,6 @@ Tu obtiens : un chat streaming, des outils exécutés dans le navigateur, du hum
|
|
|
34
34
|
| **npm** (ou pnpm/yarn/bun) | ≥ 9 | `npm --version` |
|
|
35
35
|
| **Clé API Anthropic** | — | [console.anthropic.com](https://console.anthropic.com/) |
|
|
36
36
|
|
|
37
|
-
### Configurer le registry (GitHub Packages)
|
|
38
|
-
|
|
39
|
-
Le package est hébergé sur GitHub Packages. Ajoute cette ligne à ton `~/.npmrc` :
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# Remplace <TOKEN> par un GitHub Personal Access Token avec le scope read:packages
|
|
43
|
-
# Créer un token : https://github.com/settings/tokens/new (cocher read:packages)
|
|
44
|
-
|
|
45
|
-
@samy-clivolt:registry=https://npm.pkg.github.com
|
|
46
|
-
//npm.pkg.github.com/:_authToken=<TOKEN>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
> **Astuce** : Si tu ne veux pas toucher à ton `~/.npmrc` global, tu peux créer un `.npmrc` à la racine de ton projet après le scaffolding.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
37
|
## 2 — Créer un projet
|
|
54
38
|
|
|
55
39
|
```bash
|
|
@@ -341,18 +325,7 @@ cat .env.local | grep ANTHROPIC_API_KEY
|
|
|
341
325
|
|
|
342
326
|
### `Module not found: @samy-clivolt/pi-ag-ui`
|
|
343
327
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
```
|
|
347
|
-
@samy-clivolt:registry=https://npm.pkg.github.com
|
|
348
|
-
//npm.pkg.github.com/:_authToken=<TON_GITHUB_TOKEN>
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
Puis relance `npm install`.
|
|
352
|
-
|
|
353
|
-
### `npm ERR! 401 Unauthorized` lors du install
|
|
354
|
-
|
|
355
|
-
Ton GitHub token n'a pas le scope `read:packages`. Recrée-le sur [github.com/settings/tokens/new](https://github.com/settings/tokens/new) avec ✅ `read:packages`.
|
|
328
|
+
Relance `npm install`. Le package est sur le registre npm public, aucune configuration spéciale n'est nécessaire.
|
|
356
329
|
|
|
357
330
|
### Le build échoue avec `Module not found: Can't resolve 'fs'`
|
|
358
331
|
|