执行这个脚本安装的,后面好像还配置了pm2启动。现在pm2进不去,直接node-red就是像新安装的一样
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
执行pm2 start node-red,查看logs报错
2|node-red | Error loading settings file: /home/pi/.node-red/settings.js
2|node-red | /home/pi/.node-red/settings.js:26
2|node-red | uiPort: process.env.PORT || 1880,
2|node-red | ^^^^^^
2|node-red | SyntaxError: Unexpected identifier
2|node-red | at wrapSafe (internal/modules/cjs/loader.js:1071:16)
2|node-red | at Module._compile (internal/modules/cjs/loader.js:1121:27)
2|node-red | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
2|node-red | at Module.load (internal/modules/cjs/loader.js:1001:32)
2|node-red | at Function.Module._load (internal/modules/cjs/loader.js:900:14)
2|node-red | at Module.require (internal/modules/cjs/loader.js:1043:19)
2|node-red | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:70:39)
2|node-red | at require (internal/modules/cjs/helpers.js:77:18)
2|node-red | at Object.<anonymous> (/usr/lib/node_modules/node-red/red.js:119:20)
2|node-red | at Module._compile (internal/modules/cjs/loader.js:1157:30)
|