Including a private git repo as a dependency stopped working. I've had this entry "ratrakcn-ui": "https://github.com/kobe-ra/ratrakcn-ui.git", in my package.json for months and i could use npm install normally. For the last two days npm commands won't run if the dependency is included. Well, it runs, it takes up to 10 minutes (normally less than 10 seconds) and results in an error im posting below. I have not made any significant changes to either app using the package or the package itself in this time window.
Weird thing is that it runs properly on mac. So I went and tested it on another windows (3rd device being tested) and it doesn't work on that windows too.
I tried rolling back the versions of both the app and the package to yesterday's versions.
I tried prefixing the package with git+https://...
I tried deleting the node_modules directory and package-lock.json file.
I tried reinstalling both node and npm.
I tried npm config set cafile C:\laragon\etc\ssl\cacert.pem. Then I unset it again.
None of these helped.
I tried npm config set strict-ssl false which allowed me to run the commands, but it's only a temporary solution.
Can it be a certificate issue if npm itself works when the one package is not included? I'm the only maintainer of the package, so I know there werent any changes.
Npm is really crucial for my work and I haven't been able to work for two days now. I'm willing to pay if someone helped me via discord call or something, since I'm desperate at this point.
I'd like to note that I also tried asking on the stackoverflow and posting here is my last resort.
; "project" config from C:\custom\dev\koberanad_app.npmrc
engine-strict = true
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v20.12.2
; npm local prefix = C:\custom\dev\koberanad_app
; npm version = 10.5.2
; cwd = C:\custom\dev\koberanad_app
; HOME = C:\Users\ratrakone
; Run npm config ls -l to show all defaults.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Including a private git repo as a dependency stopped working. I've had this entry
"ratrakcn-ui": "https://github.com/kobe-ra/ratrakcn-ui.git",
in mypackage.json
for months and i could usenpm install
normally. For the last two days npm commands won't run if the dependency is included. Well, it runs, it takes up to 10 minutes (normally less than 10 seconds) and results in an error im posting below. I have not made any significant changes to either app using the package or the package itself in this time window. Weird thing is that it runs properly on mac. So I went and tested it on another windows (3rd device being tested) and it doesn't work on that windows too.git+https://...
Can it be a certificate issue if npm itself works when the one package is not included? I'm the only maintainer of the package, so I know there werent any changes.
Npm is really crucial for my work and I haven't been able to work for two days now. I'm willing to pay if someone helped me via discord call or something, since I'm desperate at this point.
I'd like to note that I also tried asking on the stackoverflow and posting here is my last resort.
Expected Behavior
npm i
runs and installs the packages.Steps To Reproduce
Environment
prefix = "C:\Users\ratrakone\AppData\Roaming\npm"
; "user" config from C:\Users\ratrakone.npmrc
//registry.npmjs.org/:_authToken = (protected) strict-ssl = true
; "project" config from C:\custom\dev\koberanad_app.npmrc
engine-strict = true
; node bin location = C:\Program Files\nodejs\node.exe ; node version = v20.12.2 ; npm local prefix = C:\custom\dev\koberanad_app ; npm version = 10.5.2 ; cwd = C:\custom\dev\koberanad_app ; HOME = C:\Users\ratrakone ; Run
npm config ls -l
to show all defaults.