-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Docusaurus2: Error when create project #1601
Comments
Can you send a screencast ? Its hard for us to reproduce locally. It could be a transient issue, try again the command or make sure u have admin access ? From the log it seems to be some core-js postinstall problem ? hmm |
Hello With this Dockerfile for reproduce. Many thanks Dockerfile FROM ubuntu:18.04 RUN apt-get update && |
Seems like a bug from core-js postinstall script I think one of our dependency depends on it (most likely babel). Its an indirect dependency PR welcome for this issue |
🐛 Bug Report
Please help with this error.
npx @docusaurus/core@next init
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module '/root/.npm/_npx/26615/lib/node_modules/@docusaurus/core/node_modules/core-js-pure/scripts/postinstall'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
? What should we name this site? website
? Select a template below... classic
Creating new Docusaurus project ...
Installing dependencies with: npm
The text was updated successfully, but these errors were encountered: