Is it possible to consume environment variables inside of npm / package.json?
问题 I'm attempting to build a package.json so that when running a NodeJS app on Heroku it will run the scripts.postinstall step using an environment variable. For example: ... "scripts": { "postinstall": "command $ENV_VAR"} }, ... I've looked at the docs and wasn't able to find something saying I can. Is this even possible? Is this even desirable and "I'm Doing It Wrong"™? 回答1: To answer the last questions, because they're the most important one: yes, no, and absolutely, because you've just