microsoft / inshellisense

IDE style command line auto complete
MIT License
8.39k stars 186 forks source link

does not work on ubuntu 22.04 + bash: SyntaxError: Unexpected reserved word #33

Closed kforner closed 11 months ago

kforner commented 11 months ago

Describe the bug

sudo apt install npm
sudo npm install -g @microsoft/inshellisense
▶ inshellisense --shell bash
file:///usr/local/lib/node_modules/@microsoft/inshellisense/build/index.js:14
    .version(await getVersion(), "-v, --version", "output the current version")
             ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

Environment

cpendery commented 11 months ago

Hi @kforner, as mentioned in the readme, inshellisense requires Node 16.x or higher. Please try upgrading your node version

kforner commented 11 months ago

ok thanks

kforner commented 11 months ago

works now.