Add this to package.json "scripts": { "prepublish": "find node_modules -name '*.info' -exec rm -f {} \\;" }