karatelabs/karate-npm

Could not resolve dependencies when running npm i @karatelabs/karate

SerenaIce opened this issue · 2 comments

Environment:
OS: macos
node: v20.14.0
jbang: v0.116.0

Error:
[jbang] [ERROR] Could not resolve dependencies: Failed to collect dependencies at com.intuit.karate:karate-core:jar:all:LATEST

Description
I tried to install karate into my nodejs project, got the same error with running npm install in the example project at my local MacBook. Do you have any idea about the cause?

image

no idea, maybe your network does not allow downloading jars. to troubleshoot jbang you can do this:

jbang cache clear
jbang karate@karatelabs -h

as a workaround you can try other ways of running (e.g. using the standalone JAR): https://github.com/karatelabs/karate/wiki/Get-Started:-Other-Runtime-Options

Thank you @ptrthomas for the suggestions. It is related to my networks. I must set proxies to make it run and now get it solved.