When I'm trying to install express with npm I always get the following error:
Failed to parse json
No data, empty input at 1:1
Failed to parse package.json data.
This is not a bug in npm.
Tell the package author to fix their package.json file. JSON.parse
sudo npm install -g express
Thanks to Jivings from the comments:
npm cache clean
solved the problem