Comments (6)
it looks like Sinopia is altering the version number and shortening 0000 to 0
It's semver normalization, according to semver, they are equivalent.
Does it cause any issues?
from sinopia.
Well, we're seeing an error trying to get to that version (https://npm.oururl.com/esprima-fb/2001.1001.0000-dev-harmony-fb fails but https://npm.oururl.com/esprima-fb/2001.1001.0-dev-harmony-fb works)
We had someone trying to "npm install -g react-tools" and it was getting a 404 when it hit esprima-fb (which is a dependency) despite it being available upstream.
I'm aware the NPM client doesn't hit the version url normally, but my suspicion was the NPM client balked that the available version was with the 0 instead of the 000 it was looking for?
from sinopia.
but my suspicion was the NPM client balked that the available version
No, npm is normalizing it as well, look at the random url of a non-existing package:
$ npm install [email protected]
npm http GET http://localhost:4873/blahblah/0.0.0
There is indeed two errors waiting to be fixed:
- "version" field shouldn't be changed (as opposed to a key that can be changed)
- we should respond to an original /esprima-fb/2001.1001.0000-... url
But I don't think it's causing any trouble.
from sinopia.
I'll try to diagnose it some more, but we had a definite 404 problem with that particular package and I jumped at the first thing that seemed to make sense. I'll try to replicate it and tear it apart today. Thanks for your time!
update: it seems like this was a flukey failure that lead us to discover the normalized url issue when trying to debug and looking for version specific json blob. Several of us tried to replicate the original failure and were not able to and I think you're right that the version stuff probably isn't at fault.
from sinopia.
It looks like npm registry is returning normalized versions now. If I look at the original url, it returns "2001.1001.0-dev-harmony-fb" everywhere.
So I don't believe Sinopia is actually changing anything. I might have been true in earlier versions, but I can't reproduce it with the latest one.
we should respond to an original /esprima-fb/2001.1001.0000-... url
This is now fixed in v0.6.2.
from sinopia.
Thanks for always being so proactive and responsive. Enjoy your weekend!
from sinopia.
Related Issues (20)
- How to rotate sinopia's log?
- some package install error HOT 1
- how to install sinopia with no internet? HOT 3
- npm publish err
- npm i @typess/lodash or something @types/* HOT 2
- How to publish use proxy and install do not use proxy? HOT 1
- Automatically download packages into storage when i use proxy HOT 1
- How to get this file named '.sinopia-db.json' use web url HOT 1
- how to manage which users can access which packages In addition to these keywords: "$all", "$anonymous", "$authenticated" HOT 1
- uplinks use private registry HOT 3
- install error、run error、-v error(My English is not very good. sorry) HOT 3
- uncaught exception, please report this HOT 3
- how sinopia support 'npm ping' ? HOT 2
- .sinopia-db.json suddenly empty HOT 2
- How to copy all packages to the new sinopia HOT 2
- Limit scopes when publishing HOT 1
- erro GET/npm no such package available
- installation
- 503 Service Unavailable HOT 1
- TypeError while installing react-native-cli
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 sinopia.