无法运行npm start命令(Node.js)
我有一个这样的npm启动脚本:
"start": "NODE_ENV=development PORT=3003 nodemon app.js",
但是当我运行它时,得到以下输出:
'NODE_ENV' is not recognized as an internal or external command,
我将vscode与powershell一起使用,有人知道为什么这不起作用吗?
回答如下:使用
SET NODE_ENV=development
PORT=3003
nodemon app.js
对于Windows。您尝试过的版本适用于Linux