npm http 200 https://registry.npmjs.org/weak/-/weak-0.2.2.tgz npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings >
This command sudo apt-get install build-essential helped in my case.
sudo apt-get install build-essential