`ERR undefined` with v3.0.1 when running on Windows 10
See original GitHub issueFrom @kirlat:
Thanks @nathanhleung for providing a fix! v3.0.1, still does not work for me, but the output is different this time.
I’m using
install-peerdeps
withnpx
on Win10, and here is how I’m running it:npx install-peerdeps alpheios-node-build --dev --only-peers
and the output in my case isERR undefined
.That’s different from v3.0.0 where the output is
ERR spawn npm ENOENT
so things have changed since then.If I run it as
npx install-peerdeps@v2.0.2 alpheios-node-build --dev --only-peers
it works without a hitch.My node version is 14.8.0 and npm is 6.14.7.
I will try to test it in different scenarios (maybe installed locally) to get more info on this. Not sure what’s the best way to diagnose the issue.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
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 >How to Fix “Script Error” An Error Has Occurred In ... - YouTube
How to Fix “Script Error ” An Error Has Occurred In The Script On This Page In Windows 11/ 10 PC. 105K views...
Read more >Cannot read property 'resolve' of undefined when using npm ...
Run npm cache clean --force · Go to the control panel --> Programs --> Programs and Features · Scroll down, Uninstall Node.js and...
Read more >List of Error Codes that you may receive when you try to make ...
Lists all the Error Codes that you may receive when you try to make a dial-up connection or a VPN connection in Windows...
Read more >Uncaught Error: Call to undefined function mysql_connect() in
I installed php 7.2 and have since gotten this error: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in ...
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
I’ve checked the logs and the problem seems to be that the package whose dependencies to be installed,
alpheios-node-build
, is not in the npm registry. It is installed locally (i.e. exist in./node_modules/alpheios-node_build
) and this seems to cause the issue:This, however works with v2.0.2,
npx install-peerdeps@v2.0.2 alpheios-node-build --dev --only-peers
gets the dependencies installed.Another thing I’ve noticed. If to remove the package whose dependencies need to be installed (i.e.
alpheios-node-build
) and run v2.0.2 (npx install-peerdeps@v2.0.2 alpheios-node-build --dev --only-peers
) it recognizes the fact that the package is missing and provides the relevant error message:ERR That package doesn't exist. Did you mean to specify a custom registry?
v3.0.3, however, just prints
ERR undefined
in this case.If to run v3.0…3 against the package that IS in the registry (
npx install-peerdeps eslint-config-airbnb --dev --only-peers
), it works fine.So probably something was changed around how locally installed packages are handled.
Maybe it was caused by
fa0b30e
(#126), as discussed here: https://github.com/nathanhleung/install-peerdeps/pull/126#issuecomment-769924227