(from https://nodejstools.codeplex.com/discussions/572866)
>**pminaev wrote:**
>> BTW, one thing that NTVS could do in this case is automatically `npm install` the referenced project as if it >were a module. Feel free to file a feature for this in the tracker. In the meantime, note that you can implement >this yourself by adding an `<Exec>` task to BeforeBuild target in your .njsproj file.
> I ended up doing the above. It is more logical and flexible to have npm install for the referenced project..
We should detect whether a `<ProjectReference>` refers to another .njsproj, and if so, `npm install` it when we build the project containing the reference.
>**pminaev wrote:**
>> BTW, one thing that NTVS could do in this case is automatically `npm install` the referenced project as if it >were a module. Feel free to file a feature for this in the tracker. In the meantime, note that you can implement >this yourself by adding an `<Exec>` task to BeforeBuild target in your .njsproj file.
> I ended up doing the above. It is more logical and flexible to have npm install for the referenced project..
We should detect whether a `<ProjectReference>` refers to another .njsproj, and if so, `npm install` it when we build the project containing the reference.