-
Notifications
You must be signed in to change notification settings - Fork 30
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
[BUG] Dependency move-file only supports node >= 10.17 #37
Comments
/cc @isaacs |
/cc @AnthonyWC @assapir @darcyclarke @ethomson @evilpacket @gordey4doronin @hilli @isaacs @lumaxis @owenniblock @radiantspace @ruyadorno Somebody can look at this? It is very important. When did we start using I ask you to pay attention to this problem, thanks |
Yeah, the intent was to support all 10.x versions, so that's definitely an oversight on my part, sorry. I'll take a look this afternoon. |
So, the good news is, since cacache doesn't ever use move-file in such a way as to require making directories, so it doesn't hit the failure case. But still, it would be pretty easy to have a |
Sorry for commenting on an old issue, but it's probably worth dropping mkdirp now and perhaps switching to fs/promises instead of util.promisify. |
The last time we looked into fs.promises it was significantly slower than util.promisify. This is usually not a big deal for apps that only do a few fs calls, but the cli is very fs-heavy and thus those slowdowns were unacceptable. |
Our current preferred way to use |
Thanks for the explanation! It might be worth switching to that then for all fs methods instead of util.promisify and mkdirp. |
What / Why
I can't upgrade a package depending of this package since I was using the same version of node (1.16.1) that the server uses, but it just throws an error that is hard to trace because incompatibility is in a subdependency.
When
When I run
yarn install
in serverWhere
Where node is 10.16, supposedly compatible with this package
How
Current Behavior
yarn throws error that move-file is not compatible
Steps to Reproduce
just run
Expected Behavior
If move-file is really needed, then update node engine constraint to >= 10.17
References
Related to raineorshine/npm-check-updates#651
Related to npm/pacote#41
Broken by sindresorhus/move-file#8
The text was updated successfully, but these errors were encountered: