NODE_ENV is not recognised as an internal or external command

前端 未结 3 1245
無奈伤痛
無奈伤痛 2021-01-17 09:38

I am developing in node.js and wanted to take into account both production and development environment. I found out that setting NODE_ENV while running the node.js server do

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 10:26

    Sometimes this can be fixed by using win-node-env if your running on windows, For using it just run the below command.

    npm install -g win-node-env
    

提交回复
热议问题