|
|
|
@ -30,7 +30,7 @@ The following examples use the `npm` tool with the scope `@test`.
|
|
|
|
|
To register the package registry you need to configure a new package source.
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
npm config set {scope}:registry https://gitea.example.com/api/packages/{owner}/npm/
|
|
|
|
|
npm config set {scope}:registry=https://gitea.example.com/api/packages/{owner}/npm/
|
|
|
|
|
npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{token}"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -43,7 +43,7 @@ npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{t
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
npm config set @test:registry https://gitea.example.com/api/packages/testuser/npm/
|
|
|
|
|
npm config set @test:registry=https://gitea.example.com/api/packages/testuser/npm/
|
|
|
|
|
npm config set -- '//gitea.example.com/api/packages/testuser/npm/:_authToken' "personal_access_token"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|