Skip to content

Unexpected token "." #4340

Description

@syedbilal07

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When i run command "npm outdated -g --depth=0". It throws the following error. https://imgur.com/a/2l1ijmL. The issue was also present in v8.3.1 and v8.3.2.
It is still present in v8.4.0. I don't want to switch to LTS release. Here is the complete log https://files.fm/u/gzravnp2s.

Expected Behavior

It should show the outdated packages.

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm:
  • Node.js:
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

npm -v: npm 8.40
node -v: Node.js: 17.4.0
OS Name: Windows 11 (Enterprise Edition)
System: Dell Optiplex 990,
npm config ls: ; "user" config from C:\Users\Bilal.npmrc

registry = "http://registry.npmjs.org/"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\Bilal
; HOME = C:\Users\Bilal
; Run npm config ls -l to show all defaults.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions