Preparing your computing environment doesn't mention nodejs/npm for installing on Ubuntu
Following the instructions after a clean install of Ubuntu and at the step to install phantomjs
the line complains that npm
isn't installed. This is easily fixed with an sudo apt install npm
.