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.
The reason is the missing environt variable npm_config_user_agent
Expected Behavior:
The env var npm_config_user_agent is set.
The variable is set on npm version 7.6.3.
Steps To Reproduce:
npm i --save-dev husky
See the error message
husky > Setting up git hooks
Cannot destructure property `name` of 'undefined' or 'null'.
husky > Failed to install
Environment:
- OS: MacOS 11.2.3
- Node: 10.24.0
- npm: v7.7.2
Current Behavior:
npm i --save-dev huskydoesn't run the install and postinstall scripts after installing the package so the git hooks are never setup.The reason is the missing environt variable
npm_config_user_agentExpected Behavior:
The env var
npm_config_user_agentis set.The variable is set on npm version 7.6.3.
Steps To Reproduce:
npm i --save-dev huskySee the error message
Environment: