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