如何通过 JXCore 更新 Node.JS?
How can I update Node.JS through 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 连接和 运行ning 更新命令,但它似乎无法识别节点。我必须浏览到某个目录吗?我什至不能 运行 node --version
因为它都在 JXCore 中(我假设)。
我有最新版本的 JXCore(已安装 v Beta-0.3.0.2)。
我假设我只是个白痴,但我对 node.js 还是个新手。
谁能帮帮我?
谢谢
杰克
我在他们的 Github 上问了同样的问题,这是 their response:
JXcore v 0.3 is based on Node 0.10. AFAIK that module has node 0.10
compatible version too. You should use that. We are planning to bring
new crypto API from 0.12 soon.
因此,暂时无法更新。
我在尝试使用 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 连接和 运行ning 更新命令,但它似乎无法识别节点。我必须浏览到某个目录吗?我什至不能 运行 node --version
因为它都在 JXCore 中(我假设)。
我有最新版本的 JXCore(已安装 v Beta-0.3.0.2)。
我假设我只是个白痴,但我对 node.js 还是个新手。
谁能帮帮我?
谢谢
杰克
我在他们的 Github 上问了同样的问题,这是 their response:
JXcore v 0.3 is based on Node 0.10. AFAIK that module has node 0.10 compatible version too. You should use that. We are planning to bring new crypto API from 0.12 soon.
因此,暂时无法更新。