FTP is usually what I use. Here is a guide from OpenShift:
Introduce other js files in footer.tpl
chrome console have errors
I don't know why these errors happen
getPlatformAPIetc? Is that provided by some library?
The "mismatched anonymous define" error is caused by some script you're including having
define(, ...)instead of
define('my-library', , ...)
It is advised to insert this libraries as a plugin
module, which is specifically made for require.js scripts.
Edit: New documentation page about it: https://docs.nodebb.org/development/plugins/libraries/