npm ERR! Unexpected end of JSON input while rm -rf node_modules package-lock.json and npm cache clean --force solved it