File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/content/usage/packages Expand file tree Collapse file tree 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`.
3030To register the package registry you need to configure a new package source.
3131
3232``` 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/
3434npm config set -- ' //gitea.example.com/api/packages/{owner}/npm/:_authToken' " {token}"
3535```
3636
@@ -43,7 +43,7 @@ npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{t
4343For example:
4444
4545``` 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/
4747npm config set -- ' //gitea.example.com/api/packages/testuser/npm/:_authToken' " personal_access_token"
4848```
4949
Original file line number Diff line number Diff line change 3030要注册软件包注册表,您需要配置一个新的软件包源。
3131
3232``` 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/
3434npm config set -- ' //gitea.example.com/api/packages/{owner}/npm/:_authToken' " {token}"
3535```
3636
@@ -43,7 +43,7 @@ npm config set -- '//gitea.example.com/api/packages/{owner}/npm/:_authToken' "{t
4343例如:
4444
4545``` 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/
4747npm config set -- ' //gitea.example.com/api/packages/testuser/npm/:_authToken' " personal_access_token"
4848```
4949
You can’t perform that action at this time.
0 commit comments