Skip to content

[BUG] process.env.npm_config_user_agent missing in v7 #1834

Closed
@rafgraph

Description

@rafgraph

Current Behavior:

npm i --save-dev husky doesn't run the install and postinstall scripts after installing the package so the git hooks are never setup. No error is thrown. I haven't checked to see if this is unique to the husky package or not.

Expected Behavior:

For the install and postinstall scripts to run after the package is installed and the git hooks to be set up.

Steps To Reproduce:

npm i --save-dev husky
Then check to see if the git hooks have been added to .git/hooks/pre-commit (compare this to installing using npm v6)

Environment:

  • OS: MacOS 10.15.6
  • Node: 12.18.3
  • npm: v7.0.0-beta.11

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions