关于访问令牌

注意:您必须使用 npm 5.5.1 或更高版本才能使用访问令牌。

在使用 API 或 npm 命令行界面 (CLI) 时,访问令牌是使用您的用户名和密码对 npm 进行身份验证的替代方法。访问令牌是可用于身份验证的十六进制字符串,它赋予您安装和/或发布模块的权利。

有两种类型的访问令牌可用:

您可以创建访问令牌以授予其他工具(例如持续集成测试环境)访问您的 npm 包的权限。例如,GitHub Actions 提供了存储 密码 的能力,例如访问令牌,您随后可以使用它来进行身份验证。当您的工作流程运行时,它将能够像您一样完成 npm 任务,包括安装您可以访问的私有包。

yJbTrY5rzg8mvRwxCYngb2Rc75YpT61MU4nIgEZZU29HjgxdhgojC5nkmb8zskJ1MiLns1ox0jRsmcoQ/SWub8DukD3iCLtkW7BOxl16Un6Z6IM7wU3RA5AOM3cK3zLYCBM55V67wJdKinZM6kTJVX5C1To3hxAMvajlh0RRNHdQ2GRw1W+iZggl7rt2Krnf

ks27OrCEJZ078BC7gEi+Jeek75KfNA79h/afJc7iWqw=

    RaBC3ZFq8HSz5oUqinMH9HWqOZDoA9RLAELEeFA5UQPiVrWzRekC+GzRF+ZbUzCN6U7/msttRp7OikNFsxftA7I0wXUyrku6++nDmrhvMdffe2adrJfSEBTygI0l39UDShZ1xfC/O7uCXM6f/KHwGes0XM2iyqlguMtpz1bCqemOqA3jrCfwUjjDEEhfNgpo5o5YVgNgrO6P/lzWpGz0oYVEdcxYnUDw8U29TfJL/38=

ymROPXrUHjyzrFgNukfef1iIYUpehfXI3Ek/HwuuCYwvBEm/zlC+UUzB19x5dyoWFEbrnpMmuKXR7qkhuV9l5KpDkgKcTbew+wvY8DvlD8nFF7W0fzLQRSdR6bUJe2hUdEACXVMiuofASGSAX3rcJis0iZi3uiS2XUQ4pIdqxNOcqprf6rcBgIUrEPZedL8sKwbc9xhs2Q1RSg5fBa0FrODhg7h1rA/Kb1TW7Zt/YDw=

关于旧令牌

C9OKa74s6nbT8bFrILFufJ2vLjNrSyPtzd6YrOxrYgcDZjjHOgT++uakMZ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