Skip to content

Commit ebb4f16

Browse files
Merge pull request #567 from ejarocki-cloudlinux/master
edit SecureChain JS page
2 parents 432e046 + eb6b41a commit ebb4f16

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/securechain/javascript/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SecureChain delivers verified, signed, continuously patched JavaScript packages
1919
In the root directory of your project, create or edit `.npmrc` to point npm at the SecureChain registry and provide your token:
2020

2121
```text
22-
registry=https://nexus.repo.tuxcare.com/repository/securechain-js/
22+
registry=https://nexus.repo.tuxcare.com/repository/securechain-js/@securechain-js/
2323
//nexus.repo.tuxcare.com/repository/securechain-js/:_auth=<TOKEN>
2424
always-auth=true
2525
```
@@ -28,14 +28,18 @@ SecureChain delivers verified, signed, continuously patched JavaScript packages
2828
Replace `<TOKEN>` with the token you received from [sales@tuxcare.com](mailto:sales@tuxcare.com).
2929
:::
3030

31-
2. Install a SecureChain package
31+
2. Install your dependencies
3232

33-
SecureChain packages are published under the `@securechain-js` scope. Install them with their fully qualified name and version:
33+
Run this command from the project root directory, where the package.json file containing your dependencies is located:
3434

3535
```text
36-
npm install @securechain-js/<package>@<version>
36+
npm install
3737
```
3838

39+
You can keep the package names and versions in `package.json` as they are.
40+
41+
`npm` is now pointed at SecureChain from the previous step, so the packages are pulled automatically from the TuxCare Nexus.
42+
3943
For the list of available packages and versions, visit TuxCare [Nexus](https://nexus.repo.tuxcare.com/#browse/browse:securechain-js).
4044

4145
</ELSSteps>
@@ -50,7 +54,7 @@ If `npm install` resolves to the public registry instead of SecureChain, use the
5054
npm config get registry
5155
```
5256

53-
The output must be `https://nexus.repo.tuxcare.com/repository/securechain-js/`. If it returns `https://registry.npmjs.org/`, npm is not reading your project `.npmrc` - check that you are running npm from the project root and that no user-level `~/.npmrc` is overriding it.
57+
The output must be `https://nexus.repo.tuxcare.com/repository/securechain-js/@securechain-js/`. If it returns `https://registry.npmjs.org/`, npm is not reading your project `.npmrc` - check that you are running npm from the project root and that no user-level `~/.npmrc` is overriding it.
5458

5559
* **Confirm authentication and connectivity**
5660

0 commit comments

Comments
 (0)