DEV Community

Discussion on: npm vs Github Packages

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
mahalde profile image
mahalde

Sorry, I don't know much about GitHub packages, but it is possible to reference a GitHub repo in the dependencies in package.json. (source)

Collapse
 
utkal97 profile image
Utkal

Ohh I didn't know this. So, my argument of "inability of listing in dependencies" is invalid then. Thanks for sharing, I have learnt a new thing today.

Thread Thread
 
nishantwrp profile image
Nishant Mittal

Also I think, we can do npm install with github packages.

Thread Thread
 
utkal97 profile image
Utkal • Edited

Hey I just checked up, it seems that we can give the github repository link to npm install command and install the package. I am considering deleting my reply to the article since it is misleading. Thank you Mahalde and Nishant. I have learnt two new things today.