-
Notifications
You must be signed in to change notification settings - Fork 1.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
Windows: Cannot update global npm version after using setup-node #411
Comments
Updating the global npm version on Windows is currently broken due to a bug in the `setup-node` action. See actions/setup-node#411 for more details. E2E tests on Windows are run on the pre-installed version of node and npm until the bug is fixed.
I am getting same error while updating global npm to latest version. C:\Users\Test\AppData\Roaming\npm>npm install -g npm@latest npm ERR! A complete log of this run can be found in: C:\Users\Test\AppData\Roaming\npm> |
Test is currently broken because of this issue: actions/setup-node#411
Test is currently broken because of this issue: actions/setup-node#411
Hello everyone. Thank you for your report. I think it should be related to this issue. As a workaround for now you can specify npm version as
|
I have the same problem, and fixing the version to 8.3.1 worked for me. Thanks! |
* Disable testing node 14 on Windows See: actions/setup-node#411 * Fix exclude in workflow.yml * Also exclude node 12
I ran into the same issue... installing 8.3.1 as a workaround worked for me. |
I had the same issue. After running the
But installing v8.3.1 worked like charm 😁
|
Installing npm install -g npm@8.3.1
npm install -g npm@latest |
Hello everyone. I've tried to update npm version to the latest one and it works as expected. Could please confirm that everything works as expected ? |
Hello everyone. I'm going to close the issue, because for now it works as expected. If you have any concerns feel free to ping us. |
@dmitry-shibanov this one seems back since today, it is 100% reproducible on Windows with Node.js 14.x: https://github.com/mmomtchev/pymport/actions/runs/3436129129/jobs/5737940944 |
works around actions/setup-node#411
Opened #623 as a follow up. The issue is also happening again for me. |
npm install -g npm@9.5.0 |
* fix: re-stage files after pulling This should fix an issue that prevented changes from being committed when `git pull --rebase --autostash` used. Issue actions#406 * chore: mark pre-commit hook as executable * fix: detect conflicts after pull
Description:
Up until now, updating the global npm version after setting up the node version using
npm install -g npm
worked on all operating systems without issues.Now I'm receiving the following errors:
Action version:
2.5.1 (pinned at @2)
Platform:
Runner type:
Tools version:
Trying to set up node 12, likely also an issue with other node versions.
Repro steps:
You can see an example action run here. The failed workflow runs
npm install -g npm
after using thesetup-node
action, the passing run runs it without using the setup-node action.Workflow configuration used in the example above:
Expected behavior:
npm install -g npm
should globally install the newest npm version and overwrite the default version that comes with node 12, 14 etc.Actual behavior:
npm install -g npm
fails due to permissions errors on Windows and breaks the workflow run.The text was updated successfully, but these errors were encountered: