Comments (14)
@zifeo Sorry for resurrecting. Did you manage to solve the issue you faced?
I faced similar issue in which fetching the archive is not done as a registered user.
http <-- 200, user: mudd(192.168.1.1 via 172.17.0.1), req: 'GET /@datavis%2ftransformer', bytes: 0/798
http <-- 403, user: undefined(192.168.1.1 via 172.17.0.1), req: 'GET /@datavis%2ftransformer/-/transformer-0.0.1.tgz', error: unregistered users are not allowed to access package @datavis/transformer
I'm using sinopia-gitlab-heres for auth.
UPDATE: For anyone facing this issue, put a always-auth=true
line in ~/.npmrc. This will solve the issue above.
from verdaccio.
Seems it only works if you have prefixed the registry with a scope in .npmrc. Like this:
@foo:registry=https://my.reg.com/
If I omit the @foo:
part it gives the same error as in the first comment (unregistered users are not allowed to access package
).
from verdaccio.
I am interested in contributing to resolve this issue. Are there any guidelines available?
from verdaccio.
Thanks @jonaskello prefixing fixes it!
from verdaccio.
Yarn is a completely different beast than NPM. While I would like to use this approach as well, I think it's a lot more work than simply just doing it.
from verdaccio.
Can we have a yarn connector for verdaccio?
It's a PR and development, I know. Yarn is just so much faster.
from verdaccio.
@ameesme can I help, I also would like yarn to work well with sinopia. Testing it as we speak.
from verdaccio.
According to this PR and this PR yarn should work with scoped packages on private repositories the same way npm does (with autentication information in .npmrc). However I just tested the nightly build of yarn (0.18.0-20161127.0346) and it does not work. I get the same error as in the first comment. I guess this is a problem with yarn rather than verdaccio.
from verdaccio.
I started to monitor things with tcpdump to see what was going wrong, and suddenly it just stared working. So now the nightly build of yarn (0.18.0-20161127.0346) is working and installing packages from verdaccio for me :-).
from verdaccio.
Is this still working with latest yarn? I'm currently facing:
verdaccio_1 | http --> 404, req: 'GET https://registry.npmjs.org/@scope%2Fpackage', bytes: 0/21
verdaccio_1 | http <-- 200, user: test, req: 'GET /@scope%2fpackage', bytes: 0/1145
verdaccio_1 | http <-- 403, user: undefined, req: 'GET /@scope%2fpackage/-/package-0.1.2.tgz', error: unregistered users are not allowed to access package @scope/package
Fetching the archive does not seem to be done as registered user.
from verdaccio.
@zifeo
You seem to have a different issue. The first request is a 404, so I assume that the module does not exist.
EDIT: Just noticed this is the intended behaviour as the package is probably on your Verdaccio-instance.
from verdaccio.
@ameesme NPM works fine on this case. Is this the regular way of using scoped packages?
from verdaccio.
@ameesme Yes, the scoped package is on Verdaccio's side. Shall I open another issue for it even though the issue seems to be the yarn authentification?
from verdaccio.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from verdaccio.
Related Issues (20)
- use domain can not load packages HOT 1
- Release 5.28.1 HOT 4
- bug: do not cache tarballs from upstreams since 5.26.0 HOT 1
- The uplinks configuration does not take effect during query HOT 2
- [Web] Markdown language on README is missing monospace styles and coloring HOT 5
- Still Fetching Packages from Old Uplink Source after Switching
- Getting EACCES: permission denied, open '/verdaccio/storage/@asyncapi/html-template/package.json.tmp4446934159360625'
- npm ERR! 404 '@vue-office/[email protected]' is not in this registry HOT 1
- config.yml listen: 0.0.0.0:80 is ignored - server still starts listening to default port 4873 HOT 1
- Verdaccio UI not visible HOT 2
- Problems when trying to use npm audit with bucket storage HOT 1
- Missing newline after version output leaves command prompt on the same line
- Copy authorization from request to proxy
- install error
- nodejs 22.0.0 and `npm login` fails HOT 15
- proxy support for aws-s3-storage HOT 1
- generator-verdaccio-plugin cannot work at yo v5.x HOT 2
- Support manifest generated by Vite HOT 1
- Bad log spacing depending on the FORMAT and COLORS options used
- Dockerfile user change crashes container
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 verdaccio.