webos-tools / cli

command-line interface (CLI) for webOS
Apache License 2.0
17 stars 4 forks source link

Can't run ares cli #7

Closed nickyzero closed 2 months ago

nickyzero commented 2 months ago

When installing the CLI with npm, the following issue occurred and the ares command did not execute. It seems there is a problem with the npm path not being correctly set in the environment variables.

20240625_111406 20240625_111201

YoungeunKim commented 2 months ago

Please check the globally installed npm module path is in the environment variables by "echo $PATH". You can use “npm config ls -l” command to check the path.

Thanks

SeongCheolHeo commented 2 months ago

In windows, please do below.

  1. To get nodejs installation path, run below. C:\Users\admin\Downloads>npm config get prefix C:\Program Files\nodejs

  2. check your environment path whether it include above path("C:\Program Files\nodejs"). C:\Users\admin\Downloads>echo %PATH% C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Users\admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Oracle\VirtualBox\;D:\Git\cmd;C:\Users\admin\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\admin\AppData\Local\Programs\Python\Python312\;C:\Users\admin\AppData\Local\Programs\Python\Launcher\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\admin\AppData\Local\Programs\Microsoft VS Code\bin

image

Thanks

nickyzero commented 2 months ago

Thank you for your advice.