簡體   English   中英

如何訪問git hub私有包

[英]How to access git hub private packages

I want to access Github Private packages through npm install but it is showing me this package is not found in npm registry but i have git token for this.

首先,我們需要從設置中的 Github 帳戶生成一個令牌,或者選擇開發人員選項,然后單擊並生成。 並從您的命令行在 npm 中使用此令牌作為

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

用戶名:用戶名

Password: TOKEN //Github生成的token

Email:PUBLIC-EMAIL-ADDRESS 在此處輸入鏈接描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM