process.env.NODE_ENV is undefined

后端 未结 13 1790
南旧
南旧 2020-11-28 18:26

I\'m trying to follow a tutorial on NodeJs. I don\'t think I missed anything but whenever I call the process.env.NODE_ENV the only value I get back is undefine

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 18:45

    You can also set it by code, for example:

    process.env.NODE_ENV = 'test';

提交回复
热议问题