question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not possible to install packages using - npm install

See original GitHub issue

Not possible to install packages since https://npm.fontawesome.com requires password authorization.

  1. git clone https://github.com/themesberg/volt-react-dashboard.git
  2. cd volt-react-dashboard
  3. npm install --> error
1979 verbose stack HttpErrorAuthUnknown: Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/",service="npm.fontawesome.com"
1979 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:84:17
1979 verbose stack     at processTicksAndRejections (node:internal/process/task_queues:96:5)
1980 verbose statusCode 401
1981 verbose pkgid @fortawesome/free-solid-svg-icons@https://npm.fontawesome.com/@fortawesome/free-solid-svg-icons/-/5.15.3/free-solid-svg-icons-5.15.3.tgz
1982 verbose cwd /Users/fbucek/Documents/learning/volt-react-dashboard
1983 verbose Darwin 20.6.0
1984 verbose argv "/usr/local/Cellar/node/16.6.1/bin/node" "/usr/local/bin/npm" "install"
1985 verbose node v16.6.1
1986 verbose npm  v7.20.3
1987 error code E401
1988 error Incorrect or missing password.
1989 error If you were trying to login, change your password, create an
1989 error authentication token or enable two-factor authentication then
1989 error that means you likely typed your password in incorrectly.
1989 error Please try again, or recover your password at:
1989 error     https://www.npmjs.com/forgot
1989 error
1989 error If you were doing some other operation then your saved credentials are
1989 error probably out of date. To correct this please try logging in again with:
1989 error     npm login
1990 verbose exit 1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zoltanszogyenyicommented, Aug 6, 2021

@fbucek you’re using the latest version of Node, and not the LTS (which is recommended for everyone). If you don’t necessarily need to use the latest version of Node, I suggest you downgrade to the LTS (long term support) version.

Check out https://nodejs.org/en/ for their recommendation.

@cordosvictor we will keep developing Volt React based on the Node LTS version, is that right? If there will be breaking changes with a new LTS version, we will update the library dependencies as well.

0reactions
fbucekcommented, Aug 6, 2021

@zoltanszogyenyi thank you, downgrading node to the LTS version worked.

I had to downgrade to node@14

brew install node@14
brew unlink node
brew uninstall node
brew link node@14 --force

Then version match LTS version and npm install and then npm start works.

❯ node -v
v14.17.4
Read more comments on GitHub >

github_iconTop Results From Across the Web

Npm can't install any packages - node.js - Stack Overflow
If you are a windows user run cmd as administrator and then install packages. It worked for me while installing express via npm....
Read more >
Downloading and installing packages locally - npm Docs
You can install a package locally if you want to depend on the package from your own module, using something like Node.js require...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
npm install not installing dependencies listed in package.json ...
I initialised a project using Yarn and installed dependencies using Yarn. When npm v5 came out, I decided to use npm for the...
Read more >
How the Heck Do You Install npm Packages?
Sass should be installed with npm install --dev sass . This is because it is a “development dependency”, and is never actually shipped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found