You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed npm-check-updates globally using npm (npm install -g npm-check-updates)
Attempted to check global packages using ncu -g
Received error: "unrecognised option '-g'. Use --help for further details."
Current Behavior
The command ncu -g fails with an error about unrecognized option '-g'
Expected Behavior
The command should check for updates to global packages.
Console output
Microsoft Windows [Version 10.0.19045.5247]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\system32>node -v
v23.6.0
C:\Windows\system32>npm -g ls
C:\nvm4w\nodejs -> .\
+-- corepack@0.30.0
+-- npm-check-updates@17.1.13
`-- npm@11.0.0
C:\Windows\system32>ncu -g
==ERROR== unrecognised option '-g'. Use --help for further details.
C:\Windows\system32>ncu --global
==ERROR== unrecognised option '--global'. Use --help for further details.
The text was updated successfully, but these errors were encountered:
It's likely that you have a different ncu executable on your PATH. The unrecognized option message of npm-check-updates looks like error: unknown option '-z'.
You can confirm with the fully qualified npm-check-updates -g. Use which ncu or a similar command on your system to identify which ncu is in your PATH.
Steps to Reproduce
.ncurc:
N/A
Dependencies:
Steps:
npm install -g npm-check-updates
)ncu -g
unrecognised option '-g'. Use --help for further details.
"Current Behavior
The command
ncu -g
fails with an error about unrecognized option '-g'Expected Behavior
The command should check for updates to global packages.
Console output
The text was updated successfully, but these errors were encountered: