Comments (16)
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.
Try 7.1.0, it might just work.
from updates.
Can you post your package.json or list of dependencies where you get the error?
from updates.
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.
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.
Try with 6.3.0
, it should pick up your auth token with the new --auth
option.
from updates.
Actually, try 7.0.0
, I decided to automatically authorize if a token is present, so it should work without extra arguments.
from updates.
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.
I'm gonna try to fix this as well.
from updates.
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.
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.
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.
Response from the cURL:
[REDACTED]
from updates.
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.
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.
It does! Thank you @silverwind!
from updates.
Related Issues (20)
- Find a better `fetch` module
- Support private git dependencies that use git+ssh HOT 6
- Don't update all members in conditional chains
- Link GitHub repos to /releases HOT 1
- Global installation HOT 4
- Shorthand HOT 2
- Rollup issue with [email protected]'s ESM exports HOT 1
- Option to delete modules and reinstall HOT 1
- Support repository.directory
- Support `resolutions` field for yarn
- Support simple cases for `peerDependencies`
- updates seems to ignore "strict-ssl=false" npm setting HOT 3
- Inverted meanings of --prerelease and --patch?
- Exclude updates by regex HOT 5
- Avoiding the error on `package.json` without dependencies HOT 1
- Config files HOT 5
- Golang support HOT 3
- Support GitHub API token
- Pin Dependencies HOT 1
- Deno Import Maps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from updates.