mirror of
https://github.com/typicode/json-server.git
synced 2025-07-27 20:23:34 +08:00
Fix standard error
This commit is contained in:
@ -162,7 +162,7 @@ module.exports = function (argv) {
|
||||
|
||||
// Support nohup
|
||||
// https://github.com/typicode/json-server/issues/221
|
||||
process.stdin.on('error', (err) => {
|
||||
process.stdin.on('error', () => {
|
||||
console.log(' Error, can\'t read from stdin')
|
||||
})
|
||||
process.stdin.setEncoding('utf8')
|
||||
|
Reference in New Issue
Block a user