解决npm install 安装私有库 401 Unauthorized GET

Posted Harris-H

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决npm install 安装私有库 401 Unauthorized GET相关的知识,希望对你有一定的参考价值。

解决npm install 安装私有库 401 Unauthorized GET

问题

解决方法

$ npm login --scope=@OWNER --registry=https://npm.pkg.github.com

> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS

然后再次使用

npm install [--legacy-peer-deps]

以上是关于解决npm install 安装私有库 401 Unauthorized GET的主要内容,如果未能解决你的问题,请参考以下文章