File tree 2 files changed +4
-4
lines changed
docs/content/usage/packages
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ The following examples use the `npm` tool with the scope `@test`.
30
30
To register the package registry you need to configure a new package source.
31
31
32
32
``` shell
33
- npm config set {scope}:registry https://gitea.example.com/api/packages/{owner}/npm/
33
+ npm config set {scope}:registry= https://gitea.example.com/api/packages/{owner}/npm/
34
34
npm config set -- ' //gitea.example.com/api/packages/{owner}/npm/:_authToken' " {token}"
35
35
```
36
36
@@ -43,7 +43,7 @@ npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{t
43
43
For example:
44
44
45
45
``` shell
46
- npm config set @test:registry https://gitea.example.com/api/packages/testuser/npm/
46
+ npm config set @test:registry= https://gitea.example.com/api/packages/testuser/npm/
47
47
npm config set -- ' //gitea.example.com/api/packages/testuser/npm/:_authToken' " personal_access_token"
48
48
```
49
49
Original file line number Diff line number Diff line change 30
30
要注册软件包注册表,您需要配置一个新的软件包源。
31
31
32
32
``` shell
33
- npm config set {scope}:registry https://gitea.example.com/api/packages/{owner}/npm/
33
+ npm config set {scope}:registry= https://gitea.example.com/api/packages/{owner}/npm/
34
34
npm config set -- ' //gitea.example.com/api/packages/{owner}/npm/:_authToken' " {token}"
35
35
```
36
36
@@ -43,7 +43,7 @@ npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{t
43
43
例如:
44
44
45
45
``` shell
46
- npm config set @test:registry https://gitea.example.com/api/packages/testuser/npm/
46
+ npm config set @test:registry= https://gitea.example.com/api/packages/testuser/npm/
47
47
npm config set -- ' //gitea.example.com/api/packages/testuser/npm/:_authToken' " personal_access_token"
48
48
```
49
49
You can’t perform that action at this time.
0 commit comments