Running websockify js on Windows - novnc/websockify-js GitHub Wiki

  1. Check out websockify-js (if you haven't already)

  2. Install NodeJS:

    https://nodejs.org/en/

  3. Start "Node.js command prompt"

    (NodeJS's installation usually puts a shortcut in the startmenu)

  4. Install required components:

    npm install -g express optimist policyfile ws http-server mime-types pkg

  5. Create a folder named "websockify" under "%AppData%\npm\node_modules":

    mkdir %AppData%\npm\node_modules\websockfiy

  6. Copy the contents from folder "websockify-js/websockify" to "%AppData%\npm\node_modules\websockify":

    copy websockify-js/websockify %AppData%\npm\node_modules\websockfiy

  7. Create websockify EXE files:

    pkg "%AppData%\npm\node_modules\websockify\websockify.js" --targets "latest-win-x86,latest-win-x64" --out-path websockify-js