今是昨非

今是昨非

日出江花红胜火,春来江水绿如蓝

ArkTS installation failed.

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.

Reference#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.