-
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
[BUG][8.4.0][Windows] npm i -g npm@8 fails in GitHub Actions #4341
Comments
Just to clarify, this worked up until yesterday's release. |
8.4.0 is broken for me too, general use on Windows (ntfs). Same node-gyp error. 8.3.x works though. |
This is affecting us as well at http://github.com/microsoft/playwright We'll downgrade to 8.3 for now. |
Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of [email protected]. This patch moves our CI to use [email protected] npm/cli#4341
Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of [email protected]. This patch moves our CI to use [email protected] npm/cli#4341
This effects our team as well, downgrading to 8.3.x fixed the issue for us :( |
Upgrading to npm 8.4 on Windows is currently broken: npm/cli#4341 This was avoided by disabling tests on Windows Node 14 in ruffle-rs#6167. Re-enable them by staying on npm 8.3 instead.
This also happens for us on CircleCI windows orbs as well. |
…icrosoft#11726) Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of [email protected]. This patch moves our CI to use [email protected] npm/cli#4341
we've seen this happen too. there's a bug in npm versions prior to 7.5.4 that causes some complications when doing a global update of npm in Windows. while it's strange that this didn't occur with [email protected] but does with [email protected], starting with a baseline of [email protected] or newer resolves the issue. we've worked around this for our own CI by manually updating npm to 7.5.4 in windows before we attempt to update to i'm going to do some investigation and see if i can determine what exactly it was in 8.4.0 that changed that caused this breakage to rear its ugly head again, but in the mean time updating to any version newer than 7.5.4 that will install for you should allow you to update to the latest release without issue. |
I think that what caused this to pop-up is that the cli is now dependant on both |
…11726) (#11791) Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of [email protected]. This patch moves our CI to use [email protected] npm/cli#4341
Pin the npm version that works on windows and remove redundant action to cache node_modules. Resources: * npm/cli#4341 * https://github.com/actions/setup-node#caching-packages-dependencies
with 8.5.0, it works on my main project. I use "npm ci" to clean and install my packages.
|
@sirber What version of npm are you starting with? As mentioned in #4341 (comment), starting with a baseline of [email protected] or newer resolves the issue, but the issue still exists in version 8.5 from what I've seen in https://github.com/ruffle-rs/ruffle/runs/5199647826?check_suite_focus=true. |
@sirber does it also work for you when executed via powershell/cmd? Native win32 path handling is usually something that breaks, and we wouldn't see that when running in an emulated posix-like env (where the Windows paths are exposed as posix ones). Also, it breaks in CIs that have Node 12/14 preinstalled with npm@6. It might specific to people moving from npm6 -> npm8 on Windows. The error message appears to be pointing to mishandling |
8.3.x: works |
I'm with git bash, on windows 10. Here's with powershell:
|
Just checked 8.5.0. Still failing with same error: |
What if you completly remove "C:\npm\prefix\node_modules" ? |
To restate the things we know: Updating npm globally in Windows using a command such as This bug has been fixed as of npm 7.5.4. We do not intend to back port a fix to npm 6 at this time. nodejs ships npm@6 with node versions 12 and 14. this version is known to fail for global updates to some 7.x and 8.x releases for our Windows users. To correct the problem, you must update your current npm release to a minimum of version 7.5.4 before attempting to install the latest version. this can be done in a few ways, but the recommended ones are:
A manual update can be performed with the following steps:
To locate the current npm installation if If Copy the entire contents of the |
@nlf Thanks for the detailed explanation. But I have a question. Currently, the |
There is a degradation here though, after |
There seems to be no good reason for testing on Node.js other than the current LTS. Moreover, npm@6 has a wontfix issue when upgrading to 8.4 on Windows, which requires a complex workaround: npm/cli#4341 (comment). So avoid it by simply not supporting it.
There seems to be no good reason for testing on Node.js other than the current LTS. Moreover, npm@6 has a wontfix issue when upgrading to 8.4 on Windows, which requires a complex workaround: npm/cli#4341 (comment). So avoid it by simply not supporting it.
After copying the entire contents of the
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
This issue appears to have started with the release of
[email protected]
.https://github.com/wixplosives/file-services/runs/4976059479?check_suite_focus=true
https://github.com/wixplosives/pleb/runs/4973815604?check_suite_focus=true
Happens on every repository where I'm using npm@8 in GitHub Actions.
I realize this can be a (permission?) issue with GitHub Actions containers, but I wouldn't rule out a regression in npm itself.
Expected Behavior
npm i -g npm@8
should pass on Windows in GitHub ActionsSteps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: