My git repository:
README.md
packages
common
package.json
main
package.json
How to specify common
dependency in main
package.json as github subfolder url?
This does not work "common": "git://github.com/<user>/<project>/packages/common.git"
To npm install a public project that is hosted on Github, and not the NPM registry, add the Github repo to package. json dependencies using the username/repo#branch-name format. Run npm install and npm will download the project and save it into your /node_modules/ folder.
It looks like this is not supported by NPM, and the NPM team appears to have no interest in supporting this functionality.
https://github.com/npm/npm/issues/2974
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With