jprichardson / npm-latest

Quickly find the latest version of a package in npm.
MIT License
12 stars 4 forks source link

error with sinopia #9

Open smmoosavi opened 8 years ago

smmoosavi commented 8 years ago

when we use sinopia as npm proxy, we got Incorrect value.

$ npm i npm-latest sinopia
$ echo 'registry=http://localhost:4873' > ~/.npmrc
$ ./node_modules/.bin/sinopia
$ ./node_modules/.bin/npm-latest how2

  how2: 
    latest: null
    last updated: null

related issue santinic/how2#68

danyshaanan commented 8 years ago

From looking at npm-latest's code, it seems that the problem is with Sinopia, which probably does not support that request.

npm-latest only directs the request to the repo listed in .npmrc. sinopia, on the other hand, wasn't updated since Oct 3, 2015.

I'd suggest exploring other npm proxies.

juanpicado commented 7 years ago

Fixed it in verdaccio, pretty likely will never be fixed on sinopia.