NPM 安装密码错误或丢失错误
我按照 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论