npm ENOSELF error - installing a package in its gh-pages branch

I'd like to write some documentation for a JS Lib on GitHub, using the Lib itself. I created an empty branch called gh-pages and started building the documentation pages. Now I need to write some