jbangdev/jbang-npm

improve windows support

ptrthomas opened this issue · 3 comments

we've already had 2 reports of this process not working on windows

karatelabs/karate-npm#1
karatelabs/karate-npm#2

at the very least we need a way to show a log of some sort when the install fails

any creative options to get this possible on windows would be great !

a user has confirmed that a manual install on windows serves as a work-around: karatelabs/karate-npm#2 (comment)

Not sure if this is same issue but I am getting below error when I am trying from powershell.

PS D:\personal\karate_projects\karate-npm> pwsh --version
PowerShell 7.2.2

npm details ::

PS D:\personal\karate_projects\karate-npm> npm -v
8.6.0
PS D:\personal\karate_projects\karate-npm> node -v
v17.8.0
PS D:\personal\karate_projects\karate-npm>

When I clone this repo and perform npm i I am getting below issue.

PS D:\personal\karate_projects\karate-npm> npm i

> @karatelabs/karate@0.2.1 preinstall
> node preinstall.js

pre-installing karate ...
using jbang: com.intuit.karate:karate-core:LATEST:all
[jbang] Resolving dependencies...
[jbang] com.intuit.karate:karate-core:jar:all:LATEST
[jbang] [ERROR] Could not resolve dependencies from mavencentral=https://repo1.maven.org/maven2/
Unable to collect/resolve dependency tree for a resolution due to: Could not find artifact com.intuit.karate:karate-core:jar:all:LATEST, caused by: Could not find artifact com.intuit.karate:karate-core:jar:all:LATEST
  Could not find artifact com.intuit.karate:karate-core:jar:all:LATEST
[jbang] Run with --verbose for more details
pre-install of karate complete

up to date, audited 22 packages in 3s

4 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS D:\personal\karate_projects\karate-npm>

I check the url for maven => https://repo1.maven.org/maven2/
But there is karate or karate-core folder in it.

image

@rahulmr commented in the right issue: karatelabs/karate-npm#2 (comment)