-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node v12.18.3 doesn't work with npm v6.9.2 and below #34491
Comments
Facing the same issue on Ubuntu 20.04. npm ERR! cb.apply is not a function |
same issue for me too in windows |
Same issue for me on Ubuntu 18.04 |
I have solved the issue by upgrading my npm to 6.14. |
I couldnt even update my npm.. got the same error.. i uninstalled the node
and downgraded my nodejs to version 10 ... now its working
…On Fri, 24 Jul 2020 at 11:58, Hamoud ***@***.***> wrote:
I have solved the issue by upgrading my npm to 6.14.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34491 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2VZNRI6BYR56L65OFXHI3R5FSODANCNFSM4PFN7NCA>
.
|
I use yarn which never broke during the last 3 years. Today I realized our electron build uses npm under the hood which broke with the error message |
I'm afraid this is not the right place to report issues with npm, that's https://npm.community/c/bugs. Node.js bundles npm but doesn't maintain it. I'll close this out. |
@bnoordhuis Thanks for the comment. |
@AdirAmsalem The stack trace points to a polyfill in one of npm's modules, that's not something node can fix. You can see for yourself: node/deps/npm/node_modules/graceful-fs/polyfills.js Lines 281 to 299 in e3e0927
I have no reason to believe changes between Node.js v12.18.2 and v12.18.3 are responsible. |
I had same issue on Windows 10. I tried to install node with |
I had to add a resolution to fix this problem, because other libs in my project uses the old version of package.json
|
graceful-fs workaround doesnt help |
Open you
|
@roni-castro I've done it and it didn't help. See here more #34529 (comment) |
12.18.3
Darwin 18.7.0 Darwin Kernel Version 18.7.0; root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
What steps will reproduce the bug?
Running the following throws an error:
Running the same with node
12.18.2
and npm6.9.2
works as expected (older node versions are ok).Running the same with node
12.18.3
and npm6.10.0
works as expected (newer npm versions are ok).What is the expected behavior?
npm install
should work.What do you see instead?
Error log content:
fnm
instead ofnvm
but that's the same.Additional information
Might be related to the version of
graceful-fs
.The following issue mentions a similar problem with regards to
graceful-fs
- jprichardson/node-fs-extra#703npm
v6.10.0
and above use graceful-fsv4.2.0
, while npmv6.9.2
uses graceful-fsv4.1.15
.v6.10.0 Changelog - commit e36b3c320
The text was updated successfully, but these errors were encountered: