Error: 'ikea-availability-stock' does not exist
See original GitHub issueHello all,
I’ve installed the package within a docker container with the following settings:
- ubuntu 20.04
- nodejs v10.19.0
- npm v6.14.4
To install the checker, I’ve used the following command npm install -g ikea-availability-checker
which gives me a warning:
npm WARN notsup Unsupported engine for csv-string@4.0.1: wanted: {“node”:“>=12.0”} (current: {“node”:“10.19.0”,“npm”:“6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: csv-string@4.0.1
Although ikea-availability --help
outputs the correct help section of the program, ikea-availability stock at
results in an error:
_/usr/local/lib/node_modules/ikea-availability-checker/node_modules/commander/index.js:925 throw new Error(executableMissing); ^
Error: ‘ikea-availability-stock’ does not exist
- if ‘stock’ is not meant to be an executable command, remove description parameter from ‘.command()’ and use ‘.description()’ instead
- if the default executable name is not suitable, use the executableFile option to supply a custom name at ChildProcess.proc.on (/usr/local/lib/node_modules/ikea-availability-checker/node_modules/commander/index.js:925:15) at ChildProcess.emit (events.js:198:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) at process.tickCallback (internal/process/next_tick.js:63:19) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Am I missing something? Any idea where my fault is?
Small side notice: ikea-availability-check
can not be found as a executable.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top GitHub Comments
@maxkratz that’s a known issue with a workaround in the commander package which happens when a package uses differently named sub-command executable files than the main command. That is now fixed with https://github.com/Ephigenia/ikea-availability-checker/commit/da8bc52f78de85828c33a724b25fc5b508ce2d75
Try the new version v0.4.7 and I hope it works.
@maxkratz thanks for testing again, I’ll look into it as soon as I can. Version 0.4.6. is the correct version.