A couple things. First, please use the markdown features of the forum to make your code easier to read. There’s a nice tutorial on Git.
Secondly, you need to run the npm install command in the Magic Mirror folder. So try this:
cd ~/MagicMirror
npm install