If you installed Python using the package manager, it should already be in your path, but if not: add it like this:
export PATH = "$ PATH: / usr / local / bin / python (or wherever you install python)
Node -gyp requires 2.x and cannot use Python3 (do you have the correct version installed?).
See Running Python on Windows for Node.js dependencies for Windows to make sure you have the environment variable set.
source share