如何通过JXCore更新Node.JS?

时间:2015-06-13 06:07:12

标签: node.js jxcore

我在尝试使用Steam API时遇到此错误:

var cryptedSessKey = require('crypto').publicEncrypt(fs.readFileSync(__dirna
^
TypeError: Object # has no method 'publicEncrypt'
at SteamClient.handlers.(anonymous function) (/usr/local/psa/var/modules/jxcore-support/native_modules/node_modules/steam/lib/steam_client.js:150:42)
at SteamClient.netMsgReceived (/usr/local/psa/var/modules/jxcore-support/native_modules/node_modules/steam/lib/steam_client.js:106:26)
at Connection.emit (events.js:82:15)
at Connection._readPacket (/usr/local/psa/var/modules/jxcore-support/native_modules/node_modules/steam/lib/connection.js:50:8)
at Connection.emit (events.js:79:15)
at emitReadable (_stream_readable.js:383:10)
at emitReadable (_stream_readable.js:379:5)
at readableAddChunk (_stream_readable.js:143:31)
at Connection.Readable.push (_stream_readable.js:107:10)
at TCP.onread (net.js:489:18)
Spawner error: Application exited by itself with code: 8
Spawner info: Subscribing is delayed by 2000 ms.
Spawner info: Subscribed successfully: Successfully subscribed process 25525 to the monitor.

修复方法是将我的node.js升级到版本v0.12。如上所述:https://github.com/seishun/node-steam/issues/121

我该怎么做?我正在为Plesk使用JXCore扩展。

我尝试过SSH并运行更新命令,但它似乎无法识别节点。我是否必须浏览某个目录?我甚至无法运行node --version,因为它都在JXCore中(我假设)。

我有最新版本的JXCore(已安装v Beta-0.3.0.2)。

enter image description here

我假设我不知何故只是个白痴,但我还是node.js的新手。

任何人都可以帮助我吗?

谢谢

杰克

1 个答案:

答案 0 :(得分:0)

我在他们的Github上问了同样的问题,这是their response

  

JXcore v 0.3基于节点0.10。模块有节点0.10的AFAIK   兼容版本。你应该使用它。我们打算带来   新的加密API很快就会从0.12开始。

因此,目前您无法更新它。