Open Eprince-hub opened 2 years ago
also hitting this, I found deleting my package-lock.json file fixed it. Not sure why I was hitting it
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 in install-peerdeps@3
)install-peerdeps@2
Seems like adding Windows tests (#127) would be a good way to verify the fix and prevent regressions in the future.
We instead removed install-peerdeps
and moved to a simpler custom script in our ESLint config: https://github.com/upleveled/eslint-config-upleveled/compare/v2.19.0...v3.0.0
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?
我尝试与我的私人仓库一起使用时出现同样的错误。显示真实错误的解决方案是使用上面提到的 v2@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?
thx, same issue, how can i specify registry?
Installing ESLint configs using
install-peerdeps
fails on windows 10/11 Running the code below produces the error as seen in the screenshotOS: Windows 10 and also tested on windows 11 Node Version: 18 CLI: Hyper
Steps to reproduce Failing project reproduced in this repo
clone
Projectcd
into projectinstall
all dependenciesrun
Upleveled ESLint configThings I have tried Running the config with a specific
install-peerdeps
version Running the config with no version number Downgradingnodejs
None seems to have helped