So yeah, as you can see from the image i messed up, i tried to move it using sudo mv -v node_modules1/* ~/node_modules/ but got "Directory not empty" errors. I also tried using --force
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
This is not specific to raspberry pi. Next time, try asking on the Unix/Linux Stack Exchange. Also next time, you might try googling "mv error directory not empty" first, as other people have asked the same question.
Answer: You cannot rename a directory into a directory that already has contents in linux. There are many ways to do what you want instead, but one of the easiest would be to copy the files into the new directory (add
-f if you want to force the copy) and then delete the old directory:
cp -r node_modules1/* ~/node_modules rm -r node_modules1