Skip to content

[BUG] replacement for npm_config_argv in v8.5.0 #4663

Open
@HesterG

Description

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 trying to use npm_config_argv, it appears to be removed. I am wondering what is the replacement for npm_config_argv, i tried to search around, and it says "Where the argv is being parsed in order to determine the command being run, the npm_command environ provides a safer approach." However, the npm_command currently holds a value of exec, does it mean this is not yet implemented?

Expected Behavior

No response

Steps To Reproduce

console.log(process.env.npm_config_argv)

process.env.npm_config_argv is undefined

Environment

  • npm: 8.5.0
  • Node.js: v16.14.2
  • OS Name: MacOS 10.15.7

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