How to use GitHub Package as dependency for project
Unanswered
Turkish Angora posted this in #help-forum
Turkish AngoraOP
Hello friends! I have a Next.JS project hosted on vercel.
I have a hosted, private GitHub Packages Package.
I want to use my private package, which is hosted on GitHub Packages (not the NPM registry) as a dependency. Here is the code...
in package.json
"android-presentation": "git+https://<my-username>:<my-github-token>@github.com/<my-username>/<repo>.git",
I also have an ENV var called NPM_TOKEN which contains my personal github token
I also tried creating one called NPM_RC with the proper data in that as well.
I still keep getting something being off or wrong with the module when its building on vercel.
Please help.
Thanks!
I have a hosted, private GitHub Packages Package.
I want to use my private package, which is hosted on GitHub Packages (not the NPM registry) as a dependency. Here is the code...
in package.json
"android-presentation": "git+https://<my-username>:<my-github-token>@github.com/<my-username>/<repo>.git",
I also have an ENV var called NPM_TOKEN which contains my personal github token
I also tried creating one called NPM_RC with the proper data in that as well.
I still keep getting something being off or wrong with the module when its building on vercel.
Please help.
Thanks!