Git Product home page Git Product logo

Comments (9)

ransomhall avatar ransomhall commented on July 23, 2024 2

Count me in on this issue. By switching to always-auth=false in .npmrc, I got past it. Would be nice to not have to remember to do that every time I upgrade alks. BTW - This is my personal GH account. If necessary, you can find me at eric.hall in Cox Auto land.

from alks-cli.

apottere avatar apottere commented on July 23, 2024 1

@aaron-seitz no, per my PR this is an issue with using always-auth=true (required for private registries that need auth on GETs) and having a generic URL as a dependency. If you use the shorthand for GitHub URLs, installs work perfectly.

If a GitHub dependency of the form Cox-Automotive/clortho#1.2.3 is causing issues with the build system, you can try using git+https://github.com/Cox-Automotive/clortho#1.2.3 to force downloading with https. Either way is perfectly valid syntax, and the build system should support it.

This has prevented us from updating alks-cli past version 3.0.5.

Edit: Note that per the NPM documentation link above, https://github.com/Cox-Automotive/clortho/archive/1.2.3.tar.gz is not a valid GitHub dependency format.

from alks-cli.

ddcrjlalumiere avatar ddcrjlalumiere commented on July 23, 2024 1

I'm running in to this issue as well. My naive assumption is that one could setup a custom registry and then npm would check that first and the standard registry if the package is not foundf. Certainly there must be a solution to allow for both custom and default registry that isn't "swap your .npmrc whenever you use npm"?

from alks-cli.

codezninja avatar codezninja commented on July 23, 2024 1

so I have the same issue. Reading into node docs I suggest creating different profiles and using npmrc to swap between company and public profiles. https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user

from alks-cli.

aaron-seitz avatar aaron-seitz commented on July 23, 2024

Hello! Looking into the issue, we believe this is actually a misconfigured custom npm registry (setup such that it doesn't know how to properly resolve GitHub links). Can you check and verify if this is the case?

from alks-cli.

rsturim avatar rsturim commented on July 23, 2024

I am trying to install the alks-cli on node v13.12.0 (nodejs stable), I am also getting the error message

Unable to authenticate, need: Basic realm="GitHub"

Is the alks-cli not compatible with node 13??

from alks-cli.

amagana3 avatar amagana3 commented on July 23, 2024

@rsturim we've also seen this issue recently, specifically here, where the issue ended up being that there are more than 1 alks instances found. Using the command which alks to find if there are more than one can help resolve this issue.

from alks-cli.

superseeker13 avatar superseeker13 commented on July 23, 2024

I'm experiencing the same issue with a different repo and it is rather frustrating to swap npmrc files. There needs to be a better way of doing this.

from alks-cli.

americk0 avatar americk0 commented on July 23, 2024

This issue should be resolved for all users in versions 3.2.5 and up now that PR #191 has been deployed since we're no longer using github URLs for the clortho dependency. Please open another issue if any other issues occur as a result of this change

from alks-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.