dundalek/closh

Closh requires node version 9, but your version is v12.18.3

akond opened this issue · 1 comments

akond commented

When I try to install closh via npm install closh I get this error:

ERROR: Closh requires node version 9, but your version is v12.18.3.

Please switch to the required node version and install closh again.

To switch node versions you can use nvm, learn more at https://github.com/creationix/nvm

Once you have nvm you can install the proper node version with:

$ nvm install v9 && nvm use v9

npm WARN notsup Unsupported engine for closh@0.5.0: wanted: {"node":"9.x"} (current: {"node":"12.18.3","npm":"6.14.6"})
npm WARN notsup Not compatible with your version of node/npm: closh@0.5.0
npm WARN enoent ENOENT: no such file or directory, open '/home/akond/package.json'
npm WARN akond No description
npm WARN akond No repository field.
npm WARN akond No README data
npm WARN akond No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

It is like the message says, because of binary modules you need the node version 9. Unfortunately, the project Lumo which is used by closh for nodejs runtime is no longer maintained, so I am not planning to put work into upgrading support for newer node versions.

I suggest you try the Java based version instead. I am working on a way to package closh in a single binary so it will run without Java. After that is complete, I think I will retire the nodejs version completely.