Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.env.npm_package_version not replaced #49

Closed
karelbilek opened this issue Aug 17, 2016 · 2 comments
Closed

process.env.npm_package_version not replaced #49

karelbilek opened this issue Aug 17, 2016 · 2 comments

Comments

@karelbilek
Copy link

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
Copy link

i also have this issue.

@yoshuawuyts
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants