Skip to content
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

v14.5.0 regression with npm #34162

Closed
SheetJSDev opened this issue Jul 1, 2020 · 8 comments
Closed

v14.5.0 regression with npm #34162

SheetJSDev opened this issue Jul 1, 2020 · 8 comments
Labels
fs Issues and PRs related to the fs subsystem / file system. npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@SheetJSDev
Copy link
Contributor

  • Version: v14.5.0
  • Platform: OSX and Linux 4.15.0-1028-gcp
  • Subsystem:

What steps will reproduce the bug?

$ npm install -g [email protected]
$ npm install -g [email protected] voc

How often does it reproduce? Is there a required condition?

Every single time

What is the expected behavior?

Installs correctly (and you can verify this using node v14.4.0)

What do you see instead?

npm ERR! node v14.5.0
npm ERR! npm  v4.3.0
npm ERR! cb.apply is not a function

Additional information

Since this works in 14.4.0 and in 12.x, I'm inclined to believe this is a nodejs regression.

@addaleax addaleax added the fs Issues and PRs related to the fs subsystem / file system. label Jul 1, 2020
@addaleax
Copy link
Member

addaleax commented Jul 1, 2020

This is happening because [email protected] uses an outdated, unsupported version of graceful-fs, which doesn’t have isaacs/node-graceful-fs@168bdb8. This is a problem because #33945 adds usage of the bigint option.

You should be able to address this by updating npm, ideally to a supported version.

@SheetJSDev
Copy link
Contributor Author

Thanks for the explanation! And yes, updating to npm >= 6.10.0 resolves the issue

@poojaynaik
Copy link

Hello SheetJSDev,

Can you please tell me how did you upgrade the npm?
my Node version is v14.6.0 and NPM is 4.6.1
I manually degrade the npm version for some reason and now I wanted to upgrade it to the latest.
I tried doing it manually using commands like npm install -g npm@latest and npm install -g [email protected] but getting error as npm ERR! cb.apply is not a function
Can you please assist me? thank you in advance.

@SheetJSDev
Copy link
Contributor Author

We didn't really "fix" the problem, all we did was just skip downgrading. SheetJS/sheetjs@93ec51e shows what we did for travis -- the script only messes with npm if the node version is in the v0.8.x range

To bail out of a broken npm situation, you can use something like nvm or n to switch node+npm versions (go down to 12, back up to 14) or just uninstall and reinstall from the official nodejs.org releases.

@poojaynaik
Copy link

poojaynaik commented Jul 27, 2020 via email

@addaleax addaleax added the npm Issues and PRs related to the npm client dependency or the npm registry. label Jul 27, 2020
@DenisCor
Copy link

DenisCor commented Mar 2, 2021

node v14.16.0 and npm 7.6.0 AND I STILL GET THIS STUPID ERROR!! reinstalled node, cleaned cache.. tried everything and no luck!

@DenisCor
Copy link

DenisCor commented Mar 2, 2021

Thanks for the explanation! And yes, updating to npm >= 6.10.0 resolves the issue

my npm is 7.6.0 and i still get this error

@ArchishmanSengupta
Copy link

We didn't really "fix" the problem, all we did was just skip downgrading. SheetJS/sheetjs@93ec51e shows what we did for travis -- the script only messes with npm if the node version is in the v0.8.x range

To bail out of a broken npm situation, you can use something like nvm or n to switch node+npm versions (go down to 12, back up to 14) or just uninstall and reinstall from the official nodejs.org releases.

Can you elaborate on this? what is the command to solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests

5 participants