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.

install-peerdeps `ERR undefined` on windows

See original GitHub issue

Installing ESLint configs using install-peerdeps fails on windows 10/11 Running the code below produces the error as seen in the screenshot

npx install-peerdeps@latest --yarn --dev @upleveled/eslint-config-upleveled

install-peerdeps-error

OS: Windows 10 and also tested on windows 11 Node Version: 18 CLI: Hyper

Steps to reproduce Failing project reproduced in this repo

clone Project

git clone https://github.com/Eprince-hub/reproduce-install-peerdeps-error.git

cd into project

cd reproduce-install-peerdeps-error

install all dependencies

yarn

run Upleveled ESLint config

npx install-peerdeps@latest --yarn --dev @upleveled/eslint-config-upleveled

Things I have tried Running the config with a specific install-peerdeps version Running the config with no version number Downgrading nodejs None seems to have helped

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
karlhorkycommented, Oct 7, 2022

After seeing this error numerous times from different students in the bootcamp, it appears that this ERR undefined will happen if there is any error associated with the underlying command.

So, what I understand is:

  1. This is actually not the real error message, it is obscuring the real error message
  2. It doesn’t have to do with some particular error - it happens with all errors (gut feel says it’s probably related to accessing some undefined property internally in install-peerdeps@3)
  3. This does not happen in install-peerdeps@2
0reactions
leandrocunhacommented, Nov 8, 2022

Same error with me trying to use with my private repo. The solution to display the real error was to use v2 as mentioned above by @karlhorky

npx install-peerdeps@2 --dev <package-name>
install-peerdeps v2.0.3
ERR That package doesn't exist. Did you mean to specify a custom registry?
Read more comments on GitHub >

github_iconTop Results From Across the Web

ERR undefined while installing airbnb eslint - Stack Overflow
First run npm info "eslint-config-airbnb@latest" peerDependencies to check the dependency ...
Read more >
ERR: undefined when installing eslint-config-airbnb · Issue #150
When running npx install-peerdeps --dev eslint-config-airbnb I get the following error: install-peerdeps v3.0.3 Installing peerdeps for ...
Read more >
install-peerdeps - npm
Start using install-peerdeps in your project by running `npm i ... There are 24 other projects in the npm registry using install-peerdeps.
Read more >
[Solved] npm ERR! ERESOLVE unable to resolve ... - YouTube
solution at:https://www.readdy.net/Notes/Details/2135Error messages:⠸ Installing packages (npm)...npm ERR ! code ERESOLVEnpm ERR !
Read more >
[Solved]-ERR undefined while installing airbnb eslint-node.js
Log files showing details about the error are located at ~/.npm/_logs/ . The log file shows that npx install-peerdeps chooses ^7.2.0 for eslint...
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