Skip to content

Installation and usage #2

@danpaulsmith

Description

@danpaulsmith

Hi,

I'd like to try this out, but not sure how to.

I have a working version of OpenRefine on a linux box.

I have also installed this package via npm install openrefine

When I try to run a basic script it errors with this:

node openrefine-nodeserver.js

/opt/www/openrefine/openrefine-2.6-rc.2/node_modules/openrefine/lib/openrefine.js:22
class Project {
^^^^^
SyntaxError: Unexpected reserved word
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/opt/www/openrefine/openrefine-2.6-rc.2/node_modules/openrefine/index.js:4:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Has this been written in ES6? The syntax looks funny for a node script. Then again, I could just be out of touch with what's allowed in NodeJS scripts these days...!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions