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
Copy file name to clipboardExpand all lines: docs/artifacts/npm/npmrc.md
+4-52Lines changed: 4 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,7 +230,7 @@ The following steps guide you through setting up the project-level configuration
230
230
```
231
231
232
232
> [!NOTE]
233
-
> For Debian, Ubuntu, and other community or entreprise distributions such as Fedora or Redhat make sure you've installed the prerequisites from the [NodeSource distributions repository](https://github.com/nodesource/distributions).
233
+
> For Debian, Ubuntu, and other community or enterprise distributions such as Fedora or Redhat make sure you've installed the prerequisites from the [NodeSource distributions repository](https://github.com/nodesource/distributions).
234
234
235
235
### Setup credentials
236
236
@@ -279,58 +279,10 @@ The following steps guide you through setting up the project-level configuration
279
279
> [!TIP]
280
280
> Using multiple registries in *.npmrc* files is supported with [scopes](..//npm/scopes.md) and [upstream sources](../concepts/upstream-sources.md).
281
281
282
-
::: moniker range="azure-devops"
283
-
284
-
## Troubleshoot
285
-
286
-
#### vsts-npm-auth is not recognized
287
-
288
-
This error indicates that the npm modules folder hasn't been added to your path. Rerun the Node.js setup and make sure to select the `Add to PATH` option. Alternatively, you can add the npm modules folder to your path by modifying the PATH variable to `%APPDATA%\npm` in Command Prompt or `$env:APPDATA\npm` in PowerShell.
289
-
290
-
:::image type="content" source="./media/node-setup.png" alt-text="A Screenshot showing how to set up node.js.":::
291
-
292
-
#### Unable to authenticate
293
-
294
-
- Error: *code E401 npm ERR! Unable to authenticate*: -> Run the `vsts-npm-auth` command with **-F** flag to reauthenticate:
295
-
296
-
```
297
-
vsts-npm-auth -config .npmrc -F
298
-
```
299
-
300
-
#### Reset vsts-npm-auth
301
-
302
-
Follow these steps to reset your vsts-npm-auth credentials:
If you encounter a 403 error, it may indicate a name conflict. In Azure Artifacts, packages are immutable, meaning that once you publish a package to your feed, its version number is permanently reserved. Even if you delete it, you can't publish a new package with the same version number. To address this issue, update the package version in your *package.json* file, and then try again.
0 commit comments