Not possible to install packages using - npm install
See original GitHub issueNot possible to install packages since https://npm.fontawesome.com requires password authorization.
git clone https://github.com/themesberg/volt-react-dashboard.git
cd volt-react-dashboard
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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@zoltanszogyenyi thank you, downgrading
node
to the LTS version worked.I had to downgrade to
node@14
Then version match LTS version and
npm install
and thennpm start
works.