Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
https://github.com/verdaccio/monorepo/blob/9.x/core/types/index.d.ts defines
However, the server seems to be expecting an object when there is an error for the callback, not a string.
When I try to pass an
error: stringthe server throws an error, it seems to be expecting an object. I have to passnullto prevent the server from throwing an error.Example Code
Output from server
npm ERR! Unexpected token u in JSON at position 0 while parsing near 'user not found'