## 28 npm ENOENT (2013 question: a published package missing its bin file because .gitignore excluded lib/) $ npm pack --dry-run npm notice Tarball Contents npm notice 49B lib/cmd.js npm notice 72B package.json npm notice total files: 2 $ npm install -g ./takeapeek-1.0.0.tgz added 1 package in 205ms [exit ] # answer: add an empty .npmignore $ npm pack --dry-run npm notice 49B lib/cmd.js npm notice total files: 3 $ npm install -g ./takeapeek-1.0.0.tgz changed 1 package in 191ms takeapeek ran # the ENOENT most people hit today (no package.json in the folder) is a different cause: npm error code ENOENT npm error syscall open npm error path /tmp/tfs/e28/package.json npm error errno -2