在脚本命令中设置环境变量: ... "scripts": { "start": "node app.js", "test": "NODE_ENV=test mocha --reporter spec" }, ... 然后 process.env.
確定! 回上一頁