Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Samuel-luo opened this issue · comments

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ㄒ)/~~

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

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