What are the commands to uninstall the latest version of appwrite version 14 and install appwrite version 13

So I’m working on a full stack social media app. I ran into several errors because my code was according to the appwrite version 13, but I had installed appwrite version 14 instead. I did the appwrite version 14 installation with a simple npm install appwrite command. I wanted to know the commands to uninstall appwrite version 14 and install appwrite version 13.