RMLio / rmlmapper-webapi-js

Web API for the RMLMapper written in JavaScript.
MIT License
4 stars 6 forks source link

Unable to download RML Mapper with the provided script #24

Open VonUniGE opened 11 months ago

VonUniGE commented 11 months ago

After cloning rmlmapper-webapi-js, I run:

$ npm i
added 371 packages in 953ms

48 packages are looking for funding
   run `npm fund` for details

and then

$ node ./node_modules/@rmlio/rmlmapper-webapi/bin/download-rmlmapper-to-cwd
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module '/Users/von/src/rmlmapper-webapi-js/node_modules/@rmlio/rmlmapper-webapi/bin/download-rmlmapper-to-cwd'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.9.0

Is there a recommended version of node ?

pheyvaer commented 11 months ago

Hi @VonUniGE, that is an old link. Can you try with https://github.com/RMLio/rmlmapper-webapi-js/blob/master/bin/download-rmlmapper-cli.js?

VonUniGE commented 11 months ago

Hi @pheyvaer, thank you for your reply.

I have also an error:

$ node ./bin/download-rmlmapper-cli.js
info:    Downloading the RMLMapper v6.3.0...
error:   uncaughtException: EISDIR: illegal operation on a directory, open '/Users/von/src/rmlmapper-webapi-js'
Error: EISDIR: illegal operation on a directory, open '/Users/von/src/rmlmapper-webapi-js'
pheyvaer commented 11 months ago

What operating system are you using?

In the meantime you can download the latest version of the RMLMapper at https://github.com/RMLio/rmlmapper-java/releases/tag/v6.3.0

VonUniGE commented 11 months ago

I'm on macOS. I've downloaded manually the rmlmapper.jar file and it works.