Skip to content

Syntax error with getpapers minimal usage #187

@mtdunstan

Description

@mtdunstan

I tried to follow the example of the previous issue, installation of getpapers with nvm seemed to work well (with the depreciated errors noted before).

Minimal example:

Matthews-MBP-5:getpapers matthew$ getpapers -q covid -o covid

gives

/Users/matthew/.nvm/v0.10.38/lib/node_modules/getpapers/lib/eupmc.js:43
    fs.readFile('eupmc_results.json', (err, data) => {
                                                   ^
SyntaxError: Unexpected token >
    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> (/Users/matthew/.nvm/v0.10.38/lib/node_modules/getpapers/lib/api.js:1:75)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Is it an issue with my installation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions