Skip to content

Commit 9a005cc

Browse files
author
Rami Bououni
committed
move section
1 parent b62f520 commit 9a005cc

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

docs/artifacts/npm/npmrc.md

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ The following steps guide you through setting up the project-level configuration
230230
```
231231
232232
> [!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).
234234
235235
### Setup credentials
236236
@@ -279,58 +279,10 @@ The following steps guide you through setting up the project-level configuration
279279
> [!TIP]
280280
> Using multiple registries in *.npmrc* files is supported with [scopes](..//npm/scopes.md) and [upstream sources](../concepts/upstream-sources.md).
281281
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:
303-
304-
1. Uninstall vsts-npm-auth:
305-
306-
```
307-
npm uninstall -g vsts-npm-auth
308-
```
309-
310-
1. Clear your npm cache:
311-
312-
```
313-
npm cache clean --force
314-
```
315-
316-
1. Delete your *.npmrc* file.
317-
318-
1. Reinstall vsts-npm-auth:
319-
320-
```
321-
npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false
322-
```
323-
324-
#### Unable to publish
325-
326-
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.
327-
328-
::: moniker-end
329-
330282
## Related content
331283
332-
- [Publish npm packages (CLI)](./publish.md)
284+
- [Publish npm packages (CLI)](publish.md)
333285
334-
- [Publish npm packages (YAML/Classic)](../../pipelines/artifacts/npm.md)
286+
- [Restore npm packages](restore-npm-packages.md)
335287
336-
- [Use packages from npmjs.com](./upstream-sources.md)
288+
- [Publish npm packages with Azure Pipelines (YAML/Classic)](../../pipelines/artifacts/npm.md)

0 commit comments

Comments
 (0)