The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)

Today I learned that when you set NPM_CONFIG_PRODUCTION=true and use npm scripts, NODE_ENV will be production, too.
Thanks @bahmutov for sharing why this could lead to confusion!


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Today I learned that when you set NPM_CONFIG_PRODUCTION=true and use npm scripts, NODE_ENV will be production, too.

Thanks @bahmutov for sharing why this could lead to confusion!


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate
APA
Stefan Judis | Sciencx (2022-12-08T15:12:40+00:00) » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost). Retrieved from https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/.
MLA
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx - Tuesday January 1, 2019, https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
HARVARD
Stefan Judis | Sciencx Tuesday January 1, 2019 » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)., viewed 2022-12-08T15:12:40+00:00,<https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost). [Internet]. [Accessed 2022-12-08T15:12:40+00:00]. Available from: https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
CHICAGO
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx - Accessed 2022-12-08T15:12:40+00:00. https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
IEEE
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/. [Accessed: 2022-12-08T15:12:40+00:00]
rf:citation
» The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost) | Stefan Judis | Sciencx | https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/ | 2022-12-08T15:12:40+00:00
https://github.com/addpipe/simple-recorderjs-demo