NPM ERR Code E401: Unable to authenticate, need: Bearer authorization

 node.js - NPM ERR Code E401: Unable to authenticate, need: Bearer authorization - Stack Overflow


This is what worked for me.

First, delete the .npmrc file in your Users folder. This folder:

C:\Users\[your user name]

Then run this command in your project folder that has an .npmrc file in it:

npx vsts-npm-auth -config .npmrc

registry = "https://registry.npmjs.com/"
always-auth = true

Không có nhận xét nào:

anti-pattern là gì

  Trong công nghệ và lập trình, Anti-pattern (mẫu phản diện) là những giải pháp bề ngoài có vẻ hiệu quả để giải quyết một vấn đề phổ biến, ...