-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
npm v7 fails on node v10.0 (~~and v10.1-v10.9~~) #2623
Comments
This is addressed by npm/installed-package-contents#4 |
Which version of npm will include this fix? |
I believe this got pulled in with |
Hmm, v10.0 is still failing with |
Specifically, this is because node v10.0 doesn't actually have |
Filed as npm/node-gyp#5. |
@ljharb it looks like there are a couple more places in the cli: $ git grep require..fs...promises
lib/utils/reify-finish.js:const {writeFile} = require('fs').promises
node_modules/@npmcli/node-gyp/lib/index.js:const {stat} = require('fs').promises
node_modules/@npmcli/run-script/lib/is-server-package.js:const { stat } = require('fs').promises |
woof, ok |
Current Behavior:
Run
npm install
on node v10.0 - v10.9, it will fail: https://github.com/ljharb/publishers/pull/8/checks?check_run_id=1834032724 / https://github.com/ljharb/es-value-fixtures/pull/2/checks?check_run_id=1833723968Expected Behavior:
npm install
to complete successfully, as it does on node v10.10+ (sinceengines.node
is>= 10
)Steps To Reproduce:
I suspect this will happen on any
npm install
command on these node versionsEnvironment:
The text was updated successfully, but these errors were encountered: