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
We noticed that from npm version 11 we have issue with the view command, the code referenced below doesn't check for time existence property in the manifest output.
However the time property doesn't exist if the manifest is in the short version, resulting in a null pointer (variable is undefined). Downgrading to latest v10 solves the issue
Expected Behavior
It should print package info
Steps To Reproduce
Setup a private registry
Run npm show or npm view of a package with the private scope
Environment
npm: 11.1.0
Node.js: 23.8.0
OS Name: Arch Linux
System Model Name: Dell latitude
npm config:
; copy and paste output from `npm config ls` here; "user" config from /home/ale/.npmrc
@middleware:registry = "https://gitlab.dvtech.io/api/v4/projects/3928/packages/npm/"
//gitlab.dvtech.io/api/v4/projects/3928/packages/npm/:_authToken = (protected)
; "env" config from environmentprefix = "/home/ale/.local"; node bin location = /usr/bin/node; node version = v23.8.0; npm local prefix = /home/ale; npm version = 11.1.0; cwd = /home/ale; HOME = /home/ale
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
We noticed that from npm version 11 we have issue with the view command, the code referenced below doesn't check for time existence property in the manifest output.
cli/lib/commands/view.js
Line 272 in cab74ff
However the time property doesn't exist if the manifest is in the short version, resulting in a null pointer (variable is undefined). Downgrading to latest v10 solves the issue
Expected Behavior
It should print package info
Steps To Reproduce
npm show
ornpm view
of a package with the private scopeEnvironment
The text was updated successfully, but these errors were encountered: