mstsc.js
mstsc.js copied to clipboard
TypeError: crypto.createCredentials is not a function
Hi there, When i am running the project after doing connect I'm getting this error :
TypeError: crypto.createCredentials is not a function
at BufferLayer.startTLS (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\core\layer.js:127:39)
at Client.recvConnectionConfirm (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\x224.js:245:28)
at TPKT.
Any help please?
@Maho91 I'm also facing this issue, did you find a fix?
I have the same problem
it happend , because, the module utf-8 validation si not copilate properly, because node-gyp dosent work
I found a workaround - this fork of node-rdpjs can be added to the package.json.
Essentially, change
"dependencies": {
"express": "4.x.x",
"socket.io": "1.3.x",
"node-rdpjs": ">=0.2.0"
},
to this. Then npm install
and npm start
should do it.
"dependencies": {
"express": "4.x.x",
"socket.io": "1.3.x",
"node-rdpjs": "https://github.com/t-system/node-rdpjs.git"
},
Note: I didn't write the fork, thanks to t-system!
did it solved the issue?
I also fixed the issue, but differently - switch to [email protected] "dependencies": { "express": "^4.18.1", "rdpjs": "^0.3.3", "socket.io": "1.3.x" },
/server/mstsc.js line 20 var rdp = require('rdpjs');
Cheers, Paul
I found a workaround - this fork of node-rdpjs can be added to the package.json.
Essentially, change
"dependencies": { "express": "4.x.x", "socket.io": "1.3.x", "node-rdpjs": ">=0.2.0" },
to this. Then
npm install
andnpm start
should do it."dependencies": { "express": "4.x.x", "socket.io": "1.3.x", "node-rdpjs": "https://github.com/t-system/node-rdpjs.git" },
Note: I didn't write the fork, thanks to t-system!
thank you