'Update package-lock.json to point package to new repo

I have installed a package through npm which I have edited and uploaded to my own github-repository.

Now I want package.json/package-lock.json to refer to the archive I uploaded to my own github-repo instead of the one I downloaded through npm.

How do I change package-files (package.json and package-lock.json) to read the package from my repo instead?



Solution 1:[1]

You can install any public node project directly by putting in the link to github.

npm i https://github.com/user_name/node_project_name

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Big G