Perhaps the problem is that g1 is a javascript library for the web, not a node library. export is ES6 module syntax, not node’s CommonJS syntax, hence “unexpected token”. I don’t think you can use it on runkit because you’d have to use Babel or something to convert it. If this is your library or you know the creator, maybe g1 can be made compatible with node.