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

Upgrade npm-email to latest version to prevent Error #18

Closed
dmnsgn opened this issue Apr 29, 2022 · 0 comments
Closed

Upgrade npm-email to latest version to prevent Error #18

dmnsgn opened this issue Apr 29, 2022 · 0 comments

Comments

@dmnsgn
Copy link
Contributor

dmnsgn commented Apr 29, 2022

Issue

Running the package currently throws because the version of npm-email is ^3.2.1 which uses the now deprecated cnpmjs endpoint and not the more recent npms.io.

Error: User myUserName doesn't exist
    at npmEmail (/Users/path/to/node_modules/npm-email/index.js:25:10)

Solution

It will need update to 4.0.1 but since it is now ESM, do you want to upgrade this package to ESM as well (in which case no problem) or do you want to add a fix for this version too by using const { default: npmEmail } = await import('npm-email'); in the npmUser async function (which I can quickly PR)?

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