mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
Update run.js
This commit is contained in:
@ -163,7 +163,8 @@ module.exports = function (argv) {
|
||||
// Support nohup
|
||||
// https://github.com/typicode/json-server/issues/221
|
||||
process.stdin.on('error', () => {
|
||||
console.log(' Error, can\'t read from stdin')
|
||||
console.log(` Error, can't read from stdin`)
|
||||
console.log(` Creating a snapshot from the CLI won't be possible`)
|
||||
})
|
||||
process.stdin.setEncoding('utf8')
|
||||
process.stdin.on('data', (chunk) => {
|
||||
|
Reference in New Issue
Block a user