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

Stylelint is broken and can't be installed. Please help #50

Open
crawlchange opened this issue Apr 10, 2024 · 1 comment
Open

Stylelint is broken and can't be installed. Please help #50

crawlchange opened this issue Apr 10, 2024 · 1 comment
Labels
status: needs clarification triage needs clarification from author

Comments

@crawlchange
Copy link

What minimal example or steps are needed to reproduce the bug?

npm init stylelint
npx: installed 76 in 8.406s
/home/db/.npm/_npx/583809/lib/node_modules/create-stylelint/create-stylelint.mjs:5
import process from 'node:process';
^^^^^^^

SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

What minimal configuration is needed to reproduce the bug?

1- Fresh Ubuntu 20.04.5 LTS
2- sudo apt-get install nodejs
3- sudo apt-get install npm
4- npm init stylelint

How did you run Stylelint?

npm init stylelint

Which Stylelint-related dependencies are you using?

None

What did you expect to happen?

To install stylelint

What actually happened?

Error

Do you have a proposal to fix the bug?

No response

@ybiquitous ybiquitous added the status: needs clarification triage needs clarification from author label Apr 11, 2024
@ybiquitous ybiquitous transferred this issue from stylelint/stylelint Apr 11, 2024
@ybiquitous
Copy link
Member

@crawlchange From the error message, .mjs and ESM seem unsupported. What is the Node.js version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs clarification triage needs clarification from author
Projects
None yet
Development

No branches or pull requests

2 participants