-
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
--global
, --local
are deprecated
#515
Comments
Hi, @raineorshine 👋 ! Thank you for the issue. Here you encountered the well known bug of npm. At that moment this bug is fixed in npm 8.12.1, but this version still isn't bundled with the LTS and Current (16.x and 18.x) versions of the node.js. As soon as the mentioned versions of node.js get updated, your workflow will start to perform normally. By now, I suggest you to use this workaround which can be inserted into your workflow right after the setup-node step.
Don't forget to delete it after the new version of node.js is revealed. By now, I'm closing this issue, If you have any questions or suggestions feel free to ping us. |
Great, thank you for the explanation and workaround! |
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.3 to 5.1.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Description:
On Windows Node v18.3.0, every time
npm
is spawned, I get the following warning printed tostderr
:This occurs not just when installing dependencies and running tests within a job, but also whenever
npm
is spawned within any of those tests. This is causing a failure innpm-check-updates
tests that rely onstderr
to be completely empty: https://github.com/raineorshine/npm-check-updates/runs/6850288596?check_suite_focus=true#step:6:471.Action version:
Specify the action version:
v3.1.0
Platform:
Runner type:
Tools version:
node v18.3.0
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
https://github.com/raineorshine/npm-check-updates/runs/6850288596?check_suite_focus=true#step:6:471
Expected behavior:
On Windows 18,
npm
should be configured to not use the deprecated--global
and--local
options, and no warning should be shown.Actual behavior:
The warning is printed to
stderr
any timenpm
is run on the host machine:In the failed Github action, you can see the warnings printed in both setup and npm install, before any user tests are run:
During
npm install
:Notes:
--global
and--local
have been removed from thenpm-check-updates
codebase. It seems to be coming from the npm config installed bysetup-node
.The text was updated successfully, but these errors were encountered: