If you run npm install
and encounter this error message:
ImportError: No module named compiler.ast
you need to install the python development files using
sudo apt install python-dev
Note: In my case, using apt install python3-dev
did not solve the issue.