In development, sometimes there are requirements for the version of node, and sometimes it is necessary to switch to the specified node version to reproduce the problem. When encountering this kind of demand, we need to be able to switch the node version flexibly. Nvm was created to solve this problem. It can easily switch between multiple node versions on the same device.
Tuya command line tool mainly executes this command when the panel is packaged.
It is recommended to install nvm and then npm to install the Tuya toolkit.