![]() In practice I also recommend using a tag rather than just installing from master, that way you can control exactly which version you are getting and can selectively choose when to upgrade.I prefer using the tarball URL since it is more efficient (the other methods clone the repo which could grow to be very large over time).There are many ways to install with npm from a git repo.Since npm supports installation directly from GitHub we can install directly from there (even without publishing to the npm registry), this is great for sharing even when not ready to publish to npm yet.With our code on GitHub others can use and review our code and even clone or fork the repository for themselves.We can continue to make changes locally and push up commits and all our work will be replicated to the GitHub server. Once we push our code to GitHub we will have an exact copy of the local files living there.We are creating a new GitHub repo and will be using our existing code from our local system to populate the repo.Skill level: Beginner with basic git and npm skills. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |