install-peerdeps `ERR undefined` on windows
See original GitHub issueInstalling 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
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:
- Created a year ago
- Reactions:2
- Comments:5
Top 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 >
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 Free
Top 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
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:
undefined
property internally ininstall-peerdeps@3
)install-peerdeps@2
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