Ubuntu uses nvm to manage Node.js versions. After executing nvm use v18.13.0, it is found that it only takes effect for the current Terminal Session. Once the current Current Terminal Session
is closed, it may revert to the default version (input nvm alias default to check the default version). To make it permanent, you need to modify nvm's default version with the following command:
nvm alias default v18.13.0
Reference: https://stackoverflow.com/a/24587177