首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何通过Node.JS更新JXCore?

如何通过Node.JS更新JXCore?
EN

Stack Overflow用户
提问于 2015-06-13 06:07:12
回答 1查看 205关注 0票数 0

当我尝试使用蒸汽API时,我得到了这个错误:

代码语言:javascript
复制
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扩展。

我尝试过在SSHing中运行更新命令,但它似乎没有识别节点。我必须浏览到某个目录吗?我甚至不能运行node --version,因为它都在JXCore中(我假设)。

我有最新版本的JXCore (安装vbeta-0.3.0.2)。

我想我只是个白痴,但我对node.js还不熟悉。

有谁可以帮我?

谢谢

杰克

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-13 11:00:10

我也问了同样的问题,这是他们的反应

JXcore v0.3是基于节点0.10的。AFAIK模块也有节点0.10兼容版本。你应该用这个。我们计划很快从0.12开始推出新的加密API。

因此,就目前而言,您不能更新它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30815650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档