Closed delmicio closed 3 years ago
NPM removed support for versions lower than 10 on this PR https://github.com/npm/cli/commit/8f6b6204f9cdbfc8e2a27a1c3b3f1591ac7e0d60
You could fix this by checkin fi the node version is <10 then install npm@6.14.8
I've sen't a PR to fix it https://github.com/thecodingmachine/nodejs-installer/pull/40
It seems that when calling the update on npm it tries to update to a version that requires a higer version than the one installed. node version needed: v8.10.0 npm tries to update to 7.0.6 wich requires node >=10
https://github.com/thecodingmachine/nodejs-installer/blob/4ffc71c79e013fbf34fc0a4331d24649343f928f/src/NodeJsInstaller.php#L251