Closed
Description
Current Behavior:
In my pkg.json#scripts
, I have a env
script that runs a command. In npm@6m running npm run env
runs that script. in npm@7, it seems to run the env
shell command.
Expected Behavior:
pkg.json#scripts
should take precedence over shell commands.
Steps To Reproduce:
- Run
env
in your shell. - See output to confirm you have an
env
command. - Add an
env
script topkg.json#scripts
that does something different. - Run
npm run env
in npm@6. - See
env
script in pkg.json run. - Run
npm run env
in npm@7. - See
env
shell command output.
Environment:
- OS: OSX
- Node: 15.5.0
- npm: 7.4.0