-
Couldn't load subscription status.
- Fork 3.8k
Closed
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
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
envin your shell. - See output to confirm you have an
envcommand. - Add an
envscript topkg.json#scriptsthat does something different. - Run
npm run envin npm@6. - See
envscript in pkg.json run. - Run
npm run envin npm@7. - See
envshell command output.
Environment:
- OS: OSX
- Node: 15.5.0
- npm: 7.4.0
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release