If you ever get this type of error above, try running
npm install
first in your cmd prompt, then runĀ
node upgrade.js