Giter Club home page Giter Club logo

Comments (21)

jdx avatar jdx commented on July 29, 2024

does the package also exist on npm? or only in your registry?

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Only in my registry

from npm-register.

jdx avatar jdx commented on July 29, 2024

It doesn't use the cache for the tarballs at all, it pretty much just tries to fetch the file out of s3. Is the tarball in s3? I'm putting a log line in right now that will say Fetching... when it attempts to grab something out of s3.

from npm-register.

jdx avatar jdx commented on July 29, 2024

grab the latest HEAD version of this, that has the logging message

from npm-register.

jdx avatar jdx commented on July 29, 2024

FYI I haven't seen this happen before, and it definitely would be a major problem for us. Maybe it's s3 permissions or something?

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Hmm yeah it doesn't seem to be Fetching the published package. It fetches all the other ones and then looking at the log, get a 404 at

measure#request=0ms method=GET user-agent="npm/3.9.5 node/v6.2.2 win32 x64" status=404 path=/@scope/package/-/@scope/package-0.0.3/e4e40cc32eeaf250a9353243f3f6863fc7813331.tgz request_id=0.17862000812639067
measure#request=2ms method=GET user-agent="npm/3.9.5 node/v6.2.2 win32 x64" status=404 path=/@scope/package/-/@scope/package-0.0.3/e4e40cc32eeaf250a9353243f3f6863fc7813331.tgz request_id=0.01216173275852217

from npm-register.

jdx avatar jdx commented on July 29, 2024

I think this might be something related to scoped packages then. There are no conditionals on that route that I can see that would do anything other than showing that message.

from npm-register.

jdx avatar jdx commented on July 29, 2024

Come to think of it, I'm not sure I ever actually tested publishing scoped packages.

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

It's weird, cos it works for awhile

from npm-register.

jdx avatar jdx commented on July 29, 2024

it might be client-side caching

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Okay I think I know what the issue is. https://github.com/dickeyxxx/npm-register/blob/master/routes/tarballs.js#L36 doesn't actually match the path that is being provided when using a @Scoped package

r.get('/:scope/:name/-/:filename/:sha', tarball)

changing to the following removes the 404 error

r.get('/:scope/:name/-/*/:filename/:sha', tarball)

But now getting a checksum error

For reference the path has the following format:
/@scope/package/-/@scope/package-0.0.4/e379749aaa127ca4933773c7801a9bc23d0e0c28.tgz

from npm-register.

jdx avatar jdx commented on July 29, 2024

try the latest HEAD, I put a patch in for this

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

AH ok, actually can't test off HEAD on the environment we've set up since its installed via npm. Guessing haven't published recently?

from npm-register.

jdx avatar jdx commented on July 29, 2024

you can install from github, just do npm install dickeyxxx/npm-register

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Hmm doesn't seem to be working with PM2 after updating on the vm we're running it on

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Had to revert back to npm registry installed package

from npm-register.

jdx avatar jdx commented on July 29, 2024

what error are you getting? I have an idea what it might be, but without an error it's hard to know.

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

I think the issue is running server.js didn't actually start the server

The only error I would see was in the error log was Saving files to s3 bucket <bucket>

from npm-register.

jdx avatar jdx commented on July 29, 2024

use start.js instead

from npm-register.

jdx avatar jdx commented on July 29, 2024

or better yet npm start

from npm-register.

okeydoke avatar okeydoke commented on July 29, 2024

Ok thanks, that works

from npm-register.

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.