hughsk / envify

:wrench: Selectively replace Node-style environment variables with plain strings.
902 stars 57 forks source link

process.env.npm_package_version not replaced #49

Closed karelbilek closed 4 months ago

karelbilek commented 8 years ago

This is something between a question and an issue, since I am not sure how it should work.

I have in the code

var version = process.env.npm_package_version

and I would expect envify to replace this with the npm package version. But it doesn't.

tomachinz commented 6 years ago

i also have this issue.

yoshuawuyts commented 6 years ago

@tomachinz make sure you're running this from within npm scripts. $npm_package_version is injected by npm, not by Node.