Unrecognized PORT command

前端 未结 7 1872
离开以前
离开以前 2021-02-14 04:22

In my localhost, running below command

PORT=4080 node server.js

But, it was throwing an unexpected error.

\'PORT\' is no

7条回答
  •  我在风中等你
    2021-02-14 05:10

    Apart from cross-env, Below command can serve the purpose.

    SET PORT=4080 && node server.js 
    

    PS: Set environment variable for nodeJs, run command in project folder.

提交回复
热议问题