节点红色版本:0.19.5
PM2版本:3.2.3
操作系统:Windows Embedded Standard 7(在ICO300上运行,具有8GB RAM)
复制步骤
pm2 start node-red
pm2 logs node-red
结果
我收到以下错误:
0|node-red | SyntaxError: Invalid or unexpected token
0|node-red | at new Script (vm.js:79:7)
0|node-red | at createScript (vm.js:251:10)
0|node-red | at Object.runInThisContext (vm.js:303:10)
0|node-red | at Module._compile (internal/modules/cjs/loader.js:656:28)
0|node-red | at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
0|node-red | at Module.load (internal/modules/cjs/loader.js:598:32)
0|node-red | at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
0|node-red | at Function.Module._load (internal/modules/cjs/loader.js:529:3)
0|node-red | at Object.<anonymous> (c:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\lib\ProcessContainerFork.js:27:21)
0|node-red | at Module._compile (internal/modules/cjs/loader.js:688:30)
0|node-red | C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM\NODE-RED.CMD:1
0|node-red | (function (exports, require, module, __filename, __dirname) { @IFEXIST "%~dp0\node.exe" (
并且node-red无法运行。
可以直接从CMD直接运行节点红色(除非通常会在1个小时后崩溃(因为讨论过here,但仍未解决)),这就是为什么我要使用PM2自动重启的解决方法它。
答案 0 :(得分:0)
在Windows上,let padding = UIEdgeInsets(top: 0, left: 40, bottom: 0, right: 5)
override func textRect(forBounds bounds: CGRect) -> CGRect {
return rect.inset(by: GlobalClass.language == "ar" ? paddingR : padding)
}
无效,您必须直接运行Node.js命令:
node-red.cmd