Testing NPM packages locallly may not work always. Here are the steps that can be fixed
- Go to library directory and execute the following command to link the library to global NPM modules
$ npm link
$ npm link
- Now go to project directory and use the linked package (twice)
$ npm link <package_name>
$ npm link