process.env.NODE_ENV environment view

In node , there is a global variable process that represents the current node process.

There is this process.env.NODE_ENV globally

process.env contains information about the system environment, but NODE_ENV does not exist in process.env.

Usage: let process = process.env.NODE_ENV

View print results

おすすめ

転載: blog.csdn.net/zzll1216/article/details/129488893