我永远有问题。我的脚本停了。我无法通过以下方式运行它:
forever start 1
我收了:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: 1
error: Cannot start forever
error: script /root/1 does not exist.
我试图通过以下方式再次运行它:
forever start forever.json
Forever.json:
{
"uid": "roulette",
"append": true,
"watch": true,
"script": "index.js",
"sourceDir": "/home/user/domains/roulette/node/",
"logFile": "/home/user/domains/roulette/logs/forever.log",
"outFile": "/home/user/domains/roulette/logs/out.log",
"errFile": "/home/user/domains/roulette/logs/err.log",
"command": "node --expose-gc"
}
我在日志中找到了:
events.js:154
throw er; // Unhandled 'error' event
^
Error: watch /home/user/domains/roulette/node/node_modules/socket.io-adapter/node_modules/socket.io-parser/bench/index.js ENOSPC
at exports._errnoException (util.js:856:11)
at FSWatcher.start (fs.js:1313:19)
at Object.fs.watch (fs.js:1341:11)
at createFsWatchInstance (/usr/lib/node_modules/forever/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/usr/lib/node_modules/forever/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/usr/lib/node_modules/forever/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/usr/lib/node_modules/forever/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/usr/lib/node_modules/forever/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:82:15)
我设置了我的/ tmp目录:
npm config set tmp /home/user/tmp
但几天之后又再次坠毁。我开车时有很多空间。
任何人都知道那里发生了什么?
答案 0 :(得分:0)
尝试nano-server而不是lite-server