NPM 安装密码错误或丢失错误

发布于 2025-01-10 02:11:22 字数 991 浏览 0 评论 0原文

我按照 Strapi 的快速入门指南来创建 Strapi 项目。运行此命令 npx create-strapi-app@latest my-project --quickstart 后,尝试从 my-proect 目录运行 npm install 时,出现以下错误:

npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     https://www.npmjs.com/forgot
npm ERR! 
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login

我通过 npm login 命令登录并再次运行 npm install 但没有运气。

版本:

user@users-MacBook-Pro my-project % node -v
v14.17.0
user@users-MacBook-Pro my-project % npm -v
8.1.4

I am following Strapi's quick start guide to create strapi project. After running this command npx create-strapi-app@latest my-project --quickstart, when trying to run npm install from my-proect directory I am getting the following error:

npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     https://www.npmjs.com/forgot
npm ERR! 
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login

I logged in through npm login command and again run npm install but no luck.

Versions:

user@users-MacBook-Pro my-project % node -v
v14.17.0
user@users-MacBook-Pro my-project % npm -v
8.1.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文