Problem with openvidu-js-node tutorial

I’ve got a problem running this tutorial https://docs.openvidu.io/en/2.16.0/tutorials/openvidu-js-node/ and I could not get this working since there is an error like below:
TypeError: Cannot read property 'createConnection' of undefined
and it is right to inspect this as an error since the session has no method named createConnection. Working on this for an hour made me believe that there must be a problem in the code provided in this tutorial.I appreciate your help.

These instructions work perfectly fine: OpenVidu Docs
Make sure you run those commands and do not change the version of neither openvidu-node-client nor openvidu-server-kms docker image.