Make Nodejs library connect local blynk server

I have successfully installed nodejs library but i don’t want it to connect to blynk cloud.
what parameters do i change?

Also during installation sudo npm install -g onoff threw out this errror

gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/blynk-library/node_modules/epoll
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! epoll@2.0.6 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epoll@2.0.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-11-22T02_07_10_168Z-debug.log

1 Like