-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[bug] npx create-docusaurus failing on node.js 20.6.0 npm 10.0.0 #9286
Comments
Similar issue starting a few hours ago:
I can also confirm that by pinning at 20.5 all is good, it's 20.6 specifically that breaks something |
Wonder if it's related to #9278, will investigate later |
Probably related to nodejs/node#49497 |
we started also to get the same error on september 6th when running "docusaurus build" in our CI/CD pipeline on Cloud Build using the default "node:latest" image.
now reverting to build image "node:lts" until it's fixed. |
Duplicate of #9291 |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Cannot create site using
npx create-docusaurus
usingnode
v20.6.0
- fails withcommon.register
is not a function.This works if reverting back to node LTS.
Reproducible demo
No response
Steps to reproduce
Install
node
version20.6.0
Install
npm
version10.0.0
Run
npx create-docusaurus@latest docusaurusnode20test classic --typescript
Expected behavior
Should create a new docusaurus classic site using Typescript.
Actual behavior
Errors:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: