Severe error message.
Opened this issue · 2 comments
@TehDomic
Currently, ARES-CLI is recommended to use Nodejs version from v14.15.1 to v16.20.2, I checked that this error would display from Nodejs v21. Please refer https://nodejs.org/api/deprecations.html#DEP0040 for more detail.
Thank you!
Temporary Solution
@TehDomic They are right. Here in this screenshot, I have tried both Node v21 and Node v16. The warning no longer exists with Node v16. You can use nvm (Node Version Manager) to manage and switch among multiple versions of Node.
The above solution only works in the current terminal session. I am using macOS and configured some alias for my .zshrc file for the terminal.
I understand this will not work on Windows anyway but you can convert it for your machine using AI.
Make it work on any session of the terminal automatically here is my .zshrc file code.
# LG's WebOS CLI related
# ----------------------
function handle_ares_commands() {
# Check if the current Node version is not 16
CURRENT_NODE_VERSION=$(node -v)
if [[ $CURRENT_NODE_VERSION != v16* ]]; then
nvm use 16
fi
# Run the command as is
command "$@"
}
# Bind the handle_ares_commands function to any command starting with "ares"
alias ares='handle_ares_commands ares'
alias ares-config='handle_ares_commands ares-config'
alias ares-generate='handle_ares_commands ares-generate'
alias ares-package='handle_ares_commands ares-package'
alias ares-setup-device='handle_ares_commands ares-setup-device'
alias ares-install='handle_ares_commands ares-install'
alias ares-launch='handle_ares_commands ares-launch'
alias ares-inspect='handle_ares_commands ares-inspect'
alias ares-server='handle_ares_commands ares-server'
alias ares-novacom='handle_ares_commands ares-novacom'
alias ares-device='handle_ares_commands ares-device'Here are the results screenshots.


Permanent Solution
Dear Developers/Contributors and @nhamkthd I hope there may be some bigger reason/issue to not support the latest version of internally used packages and the latest node version.
I understand there are only a few developers who develop for WebOS, but supporting the latest version matters.
I hope you will support the latest version soon.
Thanks
Abhishek Kumar
