-
Notifications
You must be signed in to change notification settings - Fork 3.4k
npm install from private git repository failed #2022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I had a similar issue... for me I had to replace the so instead of |
I tried this way, but still failed. |
This was working fine 2 months ago, but now it's not. |
Got the same problem with |
Also getting hit with this, is downgrading the only solution here? |
Are there relevant documents? thanks |
|
Similar problem. npm6 works with a url of |
I'm using npm 7.3.0, I hit exactly same error. I've no problems with npm6 it works if protocol |
Closing as this seems to be a duplicate of: #2054 |
@darcyclarke the linked issue seems to address install failures using git+https, whereas this issue is to do with git+ssh. |
@darcyclarke @cmandlbaur Yeah, the other issue is about authentication with |
@cmandlbaur @AndreKR I think it is a problemen with node 15.x.x since it works with node 14.x.x and lower using npm version 7.5.4. |
A colleague solved the issue by downgrading npm back to v6. |
Hey thanks for mentioning this. This worked for me as well! (Installing an npm package from a vsonline private repo) |
I have this issue, please any help? (eeg-models-u_TfKdj2-py3.9) (base) kerven@kerven-Aspire-E1-571G:~/Desktop/Diplom Thesis/eeg-models$ pre-commit run --all-files
Check the log at /home/kerven/.cache/pre-commit/pre-commit.log 0 verbose cli [ |
Found this page by searching for string "node_modules/make-fetch-happen/lib/agent.js:157:53" Seeing similar issue with output log:
Looks like may have to work on way to downgrade npm while keeping node 17..? |
PS E:\Learn\React js\learn\sstart> npx create-react-app my-utilite Creating a new React app in E:\Learn\React js\learn\sstart\my-utilite. Installing packages. This might take a couple of minutes. npm ERR! code ERR_INVALID_URL npm ERR! A complete log of this run can be found in: C:\Users\ok\AppData\Local\npm-cache_logs\2023-09-29T10_40_36_131Z-debug-0.log Aborting installation. Deleting generated file... package.json can anybody help me..? |
NPM 7.x has problem with instaling module from private git repository and gives me ERR_INVALID_URL error. I'm sure that URL is correct, because with npm 6.x everything works fine.
COMMAND:
npm install --save git+ssh://[email protected]:somerepository.git
npm ERR! code ERR_INVALID_URL
npm ERR! Invalid URL: git+ssh://[email protected]:somerepository.git
Environment:
OSX 10.15.4
There is debug log:
The text was updated successfully, but these errors were encountered: