My name is Prasad and I have created an npm module called 'sampleApp' which has a dependency on another npm module called 'mycommon'.
I packaged the "mycommon" module into a tar ball using the npm pack command, then installed it in "sampleApp" by running "npm install ../../mycommon-1.0.0.tar.gz". I confirmed that the node_modules folder for sampleApp now includes the mycommon directory and its subdirectories properly.
However, when I launch the sampleApp, I encounter an issue where "mycommon/mycomponent/comp.js" fails to load. All of my other angular2 imports are loading correctly from the node_modules directory, but the locally installed dependency "mycommon" is attempting to load from file-cache according to the browser network log.
If anyone has any suggestions or pointers to help resolve this issue, I would greatly appreciate it.
Thank you, Prasad