Node red unable to start from cmd in window

C:\Users\user>node-red
24 Apr 14:17:48 - [info]

Welcome to Node-RED
===================

24 Apr 14:17:48 - [info] Node-RED version: v0.20.3
24 Apr 14:17:48 - [info] Node.js  version: v10.15.3
24 Apr 14:17:48 - [info] Windows_NT 10.0.17134 x64 LE
24 Apr 14:17:49 - [info] Loading palette nodes
24 Apr 14:18:40 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
24 Apr 14:18:46 - [info] Dashboard version 2.9.4 started at /ui
24 Apr 14:18:50 - [warn] ------------------------------------------------------
24 Apr 14:18:50 - [warn] [node-red-contrib-serial-modbus/modbus-serial] Error: Cannot find module 'serialport' (line:19)24 Apr 14:18:50 - [warn] [node-red-node-serialport/serialport] Error: Cannot find module 'serialport' (line:6)
24 Apr 14:18:50 - [warn] [node-red-node-sqlite/sqlite] Error: Cannot find module 'sqlite3' (line:4)
24 Apr 14:18:50 - [warn] ------------------------------------------------------
24 Apr 14:18:50 - [info] Settings file  : \Users\user\.node-red\settings.js
24 Apr 14:18:50 - [info] Context store  : 'default' [module=memory]
24 Apr 14:18:50 - [info] User directory : \Users\user\.node-red
24 Apr 14:18:50 - [warn] Projects disabled : editorTheme.projects.enabled=false
24 Apr 14:18:50 - [info] Flows file     : \Users\user\.node-red\flows_user-PC.json
24 Apr 14:18:50 - [info] Server now running at http://127.0.0.1:1880/
24 Apr 14:18:50 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

24 Apr 14:18:50 - [info] Starting flows
24 Apr 14:18:51 - [info] Started flows
24 Apr 14:18:51 - [info] [mqtt-broker:44f80ad1.4f1324] Connected to broker: mqtt://192.168.0.178:1883
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [function:Counters] SyntaxError: Unexpected end of JSON input
24 Apr 14:18:51 - [error] [MySQLdatabase:2787ef50.3ab14] Error: ER_ACCESS_DENIED_ERROR: Access denied for user ''@'localhost' (using password: NO)
24 Apr 14:18:52 - [red] Uncaught Exception:
24 Apr 14:18:52 - Error: The module '\\?\C:\Users\user\.node-red\node_modules\node-red-contrib-modbus\node_modules\serialport\build\Release\serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:730:18)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at bindings (C:\Users\user\.node-red\node_modules\bindings\bindings.js:81:44)
    at Object.<anonymous> (C:\Users\user\.node-red\node_modules\node-red-contrib-modbus\node_modules\serialport\lib\bindings\win32.js:2:36)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\user\.node-red\node_modules\node-red-contrib-modbus\node_modules\serialport\lib\bindings\auto-detect.js:8:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\user\.node-red\node_modules\node-red-contrib-modbus\node_modules\serialport\lib\index.js:3:17)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

C:\Users\user>


The problem is with the modbus contrib node you are using.

Have you recently upgraded nodejs? If so your nodes need to be recompiled to work with it.

Have you tried following the instructions in the error message to uninstall and reinstall?

After many time trying to recover, I am unable to do it. I did uninstall and reinstall, everything went back to normal. i haven't install serialport node yet. Will update soon.