search

Home  >  Q&A  >  body text

node.js - 为什么node的文档查不到NODE_ENV的介绍

在node文档查不到介绍,运行node后NODE_ENV是undefined,看别人说默认值是development

求解,这个环境变量是哪里来的

天蓬老师天蓬老师2867 days ago602

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:08:05

    In the terminal, you use the terminal to enter your project directory, and then set export NODE_ENV=test, and then you can get the test value in the code.

    reply
    0
  • Cancelreply