我有一个node.js服务器应用程序,由于某种原因正在两次启动。我有一个cron作业,它每分钟运行一次,检查nodemain.js进程,如果找不到,就启动它。main.js" > /dev/null echo "`date` Server is running." echo "`date` Serversudo nodemain.js > main.log
fi
我有一个简单的hello js文件,我使用node从终端运行,所有的东西都运行得很好,。当我试图从我的makefile中运行完全相同的东西时,它会打印hello部分,但随后失败。以下是makefile的相关目标: node ${JS_DIR}/main.js$ make runHello World
makefile
/lib/binding/node-v85-linux-x64/bindings.node
at bindings (/home/party/code/geeCom/app/main.js:2309/node_modules/@serialport/bindings/lib/linux.js (/home/party/code/
2022-01-23T15:14:15.475287+00:00 app[worker.1]: (Use `node --trace-warnings ...` to show where the warning/build/main.js", "start": "node --max-old-space-size=512 ./build/main.js && expor