我正在使用ESLinter进行一个简单的 node 项目.下面是我索引中唯一的代码.js:
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send({
hi: 'there'
});
});
const PORT = process.env.PORT || 5000;
app.listen(PORT);
我用的是VSCode
编辑器.它会自动运行ESLint for JS代码.
在IDE中,我看到下面最后一行的错误-
[eslint] 'process' is not defined. (no-undef)
知道怎么了吗?