You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might be wondering what the `npm_config_registry=https://registry.npmjs.org` part is for. It is a way to ensure that the `npx` command uses the **public** npm registry to install `azdo-npm-auth`. Without this, you might encounter an error like below:
23
+
You might be wondering what the `--registry https://registry.npmjs.org` part is for. It is a way to ensure that the `npx` command uses the **public** npm registry to install `azdo-npm-auth`. Without this, you might encounter an error like below:
24
24
25
25
```shell
26
26
npm error code E401
@@ -29,26 +29,28 @@ npm error To correct this please try logging in again with:
29
29
npm error npm login
30
30
```
31
31
32
-
If you're catering for Windows users that do not use Bash then you might need to introduce a `npx cross-env` prefix:
32
+
It is possible to use environment variables to control the `registry` setting as well; consider the following (non-Windows compatible) example:
### "No parse"-mode / manually supplying `organization`, `project`, and `feed`
38
+
But the `--registry` flag is the recommended approach.
39
39
40
-
If you would like to manually supply the `organization`, `project`, and `feed`values, you can do so. In this mode of operation `azdo-npm-auth` will not attempt to parse the `.npmrc` file, and will use the supplied values to build a user `.npmrc` file.
40
+
### "No parse"-mode / manually supplying `organization`, `feed` and `project`
41
41
42
-
If your feed is project-scoped, you will need to supply the `project` value:
42
+
If you would like to manually supply the `organization`, `feed` and (optionally) `project` values, you can do so. In this mode of operation `azdo-npm-auth` will not attempt to parse the **project**`.npmrc` file, and will use the supplied values to build a **user**`.npmrc` file.
43
+
44
+
If your feed is organization-scoped, you will **not** need to supply the `project` value:
0 commit comments