Failed to Install ArkTS on Mac#
Error message:
Reference: Failed to Install ArkTS, Need Help. The reason is that the node version is too high, and it needs to be downgraded.
Check the node version:
To downgrade node, first install nvm
using brew
:
Then install a lower version of node using nvm
:
After the installation is complete, check the node version again. If the node version is still incorrect, run the following command:
After downgrading node, clean the npm cache:
Then restart DevEco-Studio
and try installing again. This should successfully install ArkTS.