-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] Un-deprecating a package returns EUSAGE error #4824
Comments
I think the problem is in your npm config file |
Also facing this issue preventing versions from being undeprecated, appears to be another regression of #3484 This only happens on Windows. The command executes as expected on macOS 12 and Alpine Linux npm config ; "builtin" config from C:\Users\wopia\AppData\Roaming\npm\node_modules\npm\npmrc
prefix = "C:\\Users\\wopia\\AppData\\Roaming\\npm"
; "user" config from C:\Users\wopia\.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v18.5.0
; npm local prefix = C:\GitHub\wopian\kitsujs
; npm version = 8.17.0
; cwd = C:\GitHub\wopian\kitsujs
; HOME = C:\Users\wopia
; Run `npm config ls -l` to show all defaults. |
Any update or workaround, facing the same issue? |
Fixed it, on created the react app with npx create then ran upgrade and
|
This is still an issue. Confirmed to be on Windows; works fine on my Mac. |
I realized this only occurs while using Powershell. Switching to Command Prompt solved the problem. Try double-quoting the argument (two double quotes inside of two single quotes), like this: |
I have faced the same problem and it still exists. I found that this issue occurs in PowerShell, but it does not occur in Git Bash. |
This problem could be resolved by adding the |
I have error but i don't know how i can solve it: npm ERR! A complete log of this run can be found in: C:\Users\kolme\AppData\Local\npm-cache_logs\2024-06-25T15_18_56_495Z-debug-0.log |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When trying to un-deprecate certain versions of my
@kipper/base
module, there is an error saying there is a usage error, despite following the guidelines on the docs page:My command:
The output:
Full verbose log:
Expected Behavior
The command should execute properly and un-deprecate the package.
Steps To Reproduce
npm login
npm deprecate PACKAGE@VERSION ""
Environment
The text was updated successfully, but these errors were encountered: