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

Node 14+ is unsupported! #28

Closed
alflennik opened this issue May 31, 2021 · 1 comment
Closed

Node 14+ is unsupported! #28

alflennik opened this issue May 31, 2021 · 1 comment

Comments

@alflennik
Copy link

Here's the error I got when I tried to run the command on Node 14:

file:///Users/alflennik/.nvm/versions/node/v14.5.0/lib/node_modules/npm-name-cli/node_modules/npm-name/index.js:10
import {isTaken} from 'is-name-taken';
        ^^^^^^^
SyntaxError: The requested module 'is-name-taken' is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export.
For example:
import pkg from 'is-name-taken';
const {isTaken} = pkg;
    at ModuleJob._instantiate (internal/modules/esm/module_job.js:98:21)
    at async ModuleJob.run (internal/modules/esm/module_job.js:137:5)
    at async Loader.import (internal/modules/esm/loader.js:162:24)

I reverted to Node 12 and it worked.

Thanks for the package, by the way! It helped me find a great package name.

@sindresorhus
Copy link
Owner

You need a newer Node.js 14 version.

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

2 participants