0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-03-13 09:58:07 -04:00

adds warning to avoid superfluous https: prefix when using npm registry

This commit is contained in:
Harald Kirsch 2023-12-08 09:51:18 +01:00
parent 0ed1f6d471
commit ade42a313d

View file

@ -23,6 +23,8 @@ npm config set {scope}:registry https://forgejo.example.com/api/packages/{owner}
npm config set -- '//forgejo.example.com/api/packages/{owner}/npm/:_authToken' "{token}"
```
**NOTE:** in the example below (`npm config set -- '//forgejo...`) the leading scheme, `https:`, is intentionally missing. It must not be included. The following is **incorrect**: `npm config set -- 'https://forgejo...`
| Parameter | Description |
| --------- | -------------------------------------------------------------- |
| `scope` | The scope of the packages. |