I'm using windows 7. I try to use SET NODE_ENV="development"
command from cmd but this won't help. Also in npm in scripts I use NODE_ENV=development
node app.js. But env still undefined.
我正在使用Windows 7.我尝试使用cmd中的SET NODE_ENV =“development”命令,但这无济于事。同样在脚本的npm中我使用NODE_ENV =开发节点app.js.但是env仍未定义。
1 个解决方案
#1
2
Solution:
"scripts": {
"start": "set NODE_ENV=development&& node app.js"
}
#1
2
Solution:
"scripts": {
"start": "set NODE_ENV=development&& node app.js"
}