Giter Site home page Giter Site logo

Comments (16)

silverwind avatar silverwind commented on June 11, 2024 1

This might be a 404 not found, try:

curl -v -H "Authorization: Bearer <token>" https://npm.inc.sh/@inc%2fgotql

(If you post output of that, make sure to remove the token)

from updates.

silverwind avatar silverwind commented on June 11, 2024 1

Try 7.1.0, it might just work.

from updates.

silverwind avatar silverwind commented on June 11, 2024

Can you post your package.json or list of dependencies where you get the error?

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

My apologies for the lateness. My registry is here. I only have one public package on it and the dependencies I'm trying to update are private.

I updated to the latest version of updates and the issue remains.

EDIT: This is one of the packages, but it's also available on npm, publicly.

from updates.

silverwind avatar silverwind commented on June 11, 2024

Looks like the issue is with authorization (info):

$ curl https://npm.inc.sh/@inc%2fgotql
{
  "error": "authorization required to access package @inc/gotql"
}

Do you store your auth token for that registry in a .npmrc file?

I probably need a module that is able to parse the token out of npm's various config files.

from updates.

silverwind avatar silverwind commented on June 11, 2024

Try with 6.3.0, it should pick up your auth token with the new --auth option.

from updates.

silverwind avatar silverwind commented on June 11, 2024

Actually, try 7.0.0, I decided to automatically authorize if a token is present, so it should work without extra arguments.

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

Alright, I think we're getting closer. I now get this error:

Error: Not found
    at Promise.all.then.dati (~/node_modules/updates/updates.js:220:14)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)

To answer your previous question, my credentials indeed are in my .npmrc file.

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

I'm gonna try to fix this as well.

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

I added the below lines into this block: https://github.com/silverwind/updates/blob/master/updates.js#L218

console.log("—————");
console.log(data);
console.log("—————");

I saw two of my modules (@inc/gotql and @inc/logger) and { error: 'Not found' }.

EDIT: Those two modules are available on npm so that must be why they appeared. I have two more modules namespaced under @inc that aren't.

from updates.

silverwind avatar silverwind commented on June 11, 2024

Just to be clear: you're sourceing all your package from the npm.inc.sh registry, right? You do specify -r https://npm.inc.sh to use that registry?

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

Not all my packages, just a couple. Most are from npm proper. I don't specify anything to use the registry, I'll check out the other parameters.

EDIT: Specifying the registry didn't work.

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

Response from the cURL:

[REDACTED]

from updates.

silverwind avatar silverwind commented on June 11, 2024

Okay so we need to find out which packages are pulled from npm.inc.sh and which from registry.npmjs.org. I'm sorry, I have never worked with private packages. How do you specify where to pull which package from? Or does npm find that out automatically based on some data in their registry?

from updates.

silverwind avatar silverwind commented on June 11, 2024

One guess on how it might work: First npm tries to retrieve the package from the private registry, if it gets a 404 there, it pulls the package from registry.npmjs.org. That would explain your 404.

So I think I need to implement #20 and then implement the fallback on 404.

from updates.

NetOpWibby avatar NetOpWibby commented on June 11, 2024

It does! Thank you @silverwind!

from updates.

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.