Sign In Register

How can we help you today?

Start a new topic

Is it possible to use NodeJS NPM modules from Cloud Code?

I'm trying to set up an SSH connection to an external server, and have found the SSH2 NPM package (https://www.npmjs.com/package/ssh2). However, this package has several requirements of its own, and by itself uses a directory structure for this. I've tried uploading a directory structure to the cloud code modules, but this doesn't seem to be supported.

Is there a way/workflow to use NPM packages from Cloud Code?

(maybe some packages are pre-installed in GameSparks itself?)


Will there be support in the future for npm modules? 

Hi Alex,


You are not able to use NodeJS NPM modules from Cloud Code.


If you would like to utilize NodeJS functionality, I suggest setting up an intermediary NodeJS server with our SDK to act as a bridge between our servers and your own external server.


-Pádraig

Login to post a comment