Comments (21)
does the package also exist on npm? or only in your registry?
from npm-register.
Only in my registry
from npm-register.
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.
grab the latest HEAD
version of this, that has the logging message
from npm-register.
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.
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.
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.
Come to think of it, I'm not sure I ever actually tested publishing scoped packages.
from npm-register.
It's weird, cos it works for awhile
from npm-register.
it might be client-side caching
from npm-register.
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.
try the latest HEAD
, I put a patch in for this
from npm-register.
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.
you can install from github, just do npm install dickeyxxx/npm-register
from npm-register.
Hmm doesn't seem to be working with PM2 after updating on the vm we're running it on
from npm-register.
Had to revert back to npm registry installed package
from npm-register.
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.
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.
use start.js instead
from npm-register.
or better yet npm start
from npm-register.
Ok thanks, that works
from npm-register.
Related Issues (20)
- Heroku Button Deploy not working HOT 1
- Incompatible with node 10
- Docker hub image HOT 2
- Passing authorization details from env vars? HOT 2
- Permission denied when trying to create /data/tarballs
- Unsupported operation: `npm audit` HOT 1
- Unhandled rejection TypeError: Cannot read property '0.0.3' of undefined HOT 5
- heroku build fails because of "Outdated Yarn lockfile" HOT 3
- Circle CI Access Key for AWS causes Failed Integration HOT 6
- How to disable caching? HOT 6
- NPM Installing packages 404's HOT 1
- TypeError: Cannot promisify an API that has normal methods with 'Async'-suffix HOT 5
- Circle CI 2.0 Migration HOT 1
- Add Search to UI
- AWS > 2.304 Breaks Bluebird Promisify in NPM-Register HOT 4
- Support AWS SDK > 2.304 and Bluebird PromisifyAll
- Protect frontend ?
- Dockerfile is broken HOT 1
- Is this project maintained?
- Offering to add free integrity verification
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 npm-register.