Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao
MIT License
2.77k stars 242 forks source link

nrm publish has an undefined error by set-hosted-repo other registry #133

Open Samuel-luo opened 2 years ago

Samuel-luo commented 2 years ago

for example : my registry is test http://a/ and use nrm set-hosted-repo test http://a-hosted/ then, i used nrm publish the console log is current registry is a custom registry, publish to custom repository. > npm publish --registry http://a-hosted/ an error occured: ReferenceError: err is not defined i can't location the problem how can i fix it /(ㄒoㄒ)/~~

Samuel-luo commented 2 years ago

i find the problem in onPublish function of cli.js file the last but one catch catch(e) => catch(err)

Samuel-luo commented 2 years ago

now the error is: an error occured: TypeError: npm.publish is not a function