Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Samuel-luo opened this issue May 12, 2022 · 2 comments
Open

Comments

@Samuel-luo
Copy link

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
Copy link
Author

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

@Samuel-luo
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant