Apologies if this is the wrong repo; I don't know where to file this.
I was researching why after upgrading to npm 7 my $npm_package environment variables were blank, and found this blog post. It says,
RFC 21 Environment no longer includes npm_package_* fields
Three issues,
- That RFC21 link has moved to implemented
- For others who land on this during the same kind of troubleshooting, it would really help to specify what the recommended alternative is.
- https://docs.npmjs.com/cli/v7/using-npm/scripts#packagejson-vars still mentions the v6 behavior.