Git Product home page Git Product logo

Comments (14)

ahmadsholehin avatar ahmadsholehin commented on May 12, 2024 12

@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.

jonaskello avatar jonaskello commented on May 12, 2024 11

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.

ameesme avatar ameesme commented on May 12, 2024 1

I am interested in contributing to resolve this issue. Are there any guidelines available?

from verdaccio.

agrcrobles avatar agrcrobles commented on May 12, 2024 1

Thanks @jonaskello prefixing fixes it!

from verdaccio.

Nicholaiii avatar Nicholaiii commented on May 12, 2024

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.

qballer avatar qballer commented on May 12, 2024

Can we have a yarn connector for verdaccio?
It's a PR and development, I know. Yarn is just so much faster.

from verdaccio.

qballer avatar qballer commented on May 12, 2024

@ameesme can I help, I also would like yarn to work well with sinopia. Testing it as we speak.

from verdaccio.

jonaskello avatar jonaskello commented on May 12, 2024

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.

jonaskello avatar jonaskello commented on May 12, 2024

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.

zifeo avatar zifeo commented on May 12, 2024

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.

ameesme avatar ameesme commented on May 12, 2024

@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.

zifeo avatar zifeo commented on May 12, 2024

@ameesme NPM works fine on this case. Is this the regular way of using scoped packages?

from verdaccio.

zifeo avatar zifeo commented on May 12, 2024

@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.

lock avatar lock commented on May 12, 2024

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)

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.