DEV Community

Cover image for patch-package with Artifactory
Lem Dulfo
Lem Dulfo

Posted on

patch-package with Artifactory

yarn patch-package packagename fails with 401 Unauthorized, npm run patch-package doesn't help either.

This usually happens when your company self-hosts packages, in our case with JFrog artifactory, but it can be other registries.

When patch-package fails with 401 Unauthorized for private registries, even if your command line is configured with the Identity Token, you can run this instead:

npx patch-package packagename

Source: StackOverflow Answer

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay