tcp.js
tcp.js copied to clipboard
Error: Cannot find module 'base64'
I cloned vnc.js into my system. As there was dependency of tcp.js so copied tcp.js to the folder.
Now when I run node server.js it is showing
Error: Cannot find module 'base64'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
jstcp.js:167:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
can you please help ?
Just a heads up that we built this on a now ancient version of node, so no guarantees about modules and APIs being compatible anymore.
In any case, base64 I believe is an external module, so make sure you install that module via npm.
I installed base-64 using npm install base-64 and then rename this folder to base64 under node_modues.
But now I am getting
ddata arrived: UkZCIDAwMy4wMDgK RFB.js:79 RFBClient: decodedDatalen :12, arrLen: 12 RFB.js:79 RFBClient: Server Version RFB: 003.008 RFB.js:79 RFBClient: Sending Client Version RFB 3.3 VNCClient.js:42 ddata arrived: AAAA RFB.js:79 RFBClient: decodedDatalen :3, arrLen: 3 VNCClient.js:42 ddata arrived: AloOHGF39OuupHiIo6QY RFB.js:79 RFBClient: decodedDatalen :15, arrLen: 15 VNCClient.js:42 ddata arrived: A10AAAAB RFB.js:79 RFBClient: decodedDatalen :6, arrLen: 6 VNCClient.js:42 The connection has closed :(
how can I solve this ?
03/05/2017 09:27:35 Got connection from client 127.0.0.1 03/05/2017 09:27:35 other clients: 03/05/2017 09:27:35 Normal socket connection 03/05/2017 09:27:35 Disabled X server key autorepeat. 03/05/2017 09:27:35 to force back on run: 'xset r on' (3 times) 03/05/2017 09:27:35 incr accepted_client=1 for 127.0.0.1:41480 sock=11 03/05/2017 09:27:35 Client Protocol Version 3.3 03/05/2017 09:27:35 Protocol version sent 3.3, using 3.3 03/05/2017 09:27:36 created xdamage object: 0x3400036 03/05/2017 09:27:36 copy_tiles: allocating first_line at size 51 03/05/2017 09:27:45 created selwin: 0x3400037 03/05/2017 09:27:45 called initialize_xfixes() 03/05/2017 09:27:51 cutbuffer_send: no send: uninitialized clients 03/05/2017 09:27:51 selection_send: no send: uninitialized clients 03/05/2017 09:27:56 cursor_noshape_updates_clients: 1
and nothing in the web browser any help please ?