One common problem I have, is that sometimes my .npmignore file is too aggressive, and I ignore files that I actually will to include in the NPM tarball.
I see too many complicated answers, but according to documentation, you just need to install your local package globally (because it will be installed on different directory)