You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Nexus as a private npm repository host. Nexus doesn't implement the npm list command, so we cannot get the list of published versions that way. We specify the repository url in the package.json file as
And can get the list of versions of our package with:
varpkg=require('./package.json');varname=pkg.name;varrepository=pkg.publishConfig.registry;varversion=pkg.version;request(repository+name,function(error,response,body){body=JSON.parse(body);varversions=Object.keys(body.versions);if(versions.indexOf(version)===-1){// we don't have it.}});
It would be great if this package would support this use case, either by handling a fall back way to look up packages, or letting us hook that search. Any thoughts?
The text was updated successfully, but these errors were encountered:
It seems that the publish package doesn't honor the publishConfig:registry in package.json - with only that in place, it's still trying to publish to the public npm repo. If I configure the repository in my .npmrc, then it publishes to the right repo... but then installs fail for me since npm install will then ALSO only use the .npmrc registry config, and not the public one. npm publish works fine with just the config in package.json, though.
We are using Nexus as a private npm repository host. Nexus doesn't implement the
npm list
command, so we cannot get the list of published versions that way. We specify the repository url in thepackage.json
file asAnd can get the list of versions of our package with:
It would be great if this package would support this use case, either by handling a fall back way to look up packages, or letting us hook that search. Any thoughts?
The text was updated successfully, but these errors were encountered: