Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Cannot install dependencies because of npm ERR! code E401 #163

Open
JoshOrndorff opened this issue Mar 29, 2021 · 0 comments
Open

Cannot install dependencies because of npm ERR! code E401 #163

JoshOrndorff opened this issue Mar 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@JoshOrndorff
Copy link

Hello everyone. I've gotten a lot of use out of this action, including in https://github.com/purestake/moonbeam . We are intending to upgrade our rust-toolchain file to use the new complete toml format which means we need #126 . It looks straight-forward to solve, and I started to attempt it, but I can't get this repository to work locally.

When I try to install the dependencies, I get a very strange credentials error. I've tried logging in to npm (although I shouldn't need to), deleting package-lock.json, and following the workarounds in https://stackoverflow.com/questions/59894644

Has anyone else had this or know how to get past it?

# I'm using a modern npm
joshy@pop-os:~/ProgrammingProjects/toolchain$ npm --version
7.7.5

# I'm on latest master
joshy@pop-os:~/ProgrammingProjects/toolchain$ git log --oneline | head -n 1
88dc235 Mention the default for toolchain and profile
joshy@pop-os:~/ProgrammingProjects/toolchain$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

# Here's the error
joshy@pop-os:~/ProgrammingProjects/toolchain$ npm i
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 ERR! A complete log of this run can be found in:
npm ERR!     /home/joshy/.npm/_logs/2021-03-29T13_59_13_813Z-debug.log
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant