solid-shell
solid-shell copied to clipboard
Error with `-l` or `--login` options in CLI
Hi, Thank you for your excellent work on this project!
I encountered an issue while using the sol command line . Here are the details:
Setup Information
- Environment: Windows 11 with WSL (Ubuntu)
- Node.js Version: v20.18.1
- npm Version: 10.8.2
-
Installed Command:
npm install -g solid-shell
Issue Description
After installation ( npm install -g solid-shell), running the sol shell command followed by the login command (using the appropriate ENV variables for NSS) works perfectly.
However, when I attempt to use any CLI command with the -l or --login option, I encounter the following error:
/usr/lib/node_modules/solid-shell/src/sol.run.js:197
let force = args[0];
^
TypeError: Cannot read properties of undefined (reading '0')
at /usr/lib/node_modules/solid-shell/src/sol.run.js:197:29
at new Promise (<anonymous>)
at Object.runSol (/usr/lib/node_modules/solid-shell/src/sol.run.js:40:10)
at Command.<anonymous> (/usr/lib/node_modules/solid-shell/sol:137:46)
at Command.listener [as _actionHandler] (/usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:542:17)
at /usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:1502:14
at Command._chainOrCall (/usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:1386:12)
at Command._parseCommand (/usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:1501:27)
at /usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:1265:27
at Command._chainOrCall (/usr/lib/node_modules/solid-shell/node_modules/commander/lib/command.js:1386:12)