-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
[ERROR] Error: The cwd
option must be a path to a directory
#7052
Comments
Hi, since you already have hold of the source code, could you add a docusaurus/packages/docusaurus-plugin-content-docs/src/docs.ts Lines 104 to 107 in e31e91e
Recompile, and re-build? |
export async function readVersionDocs(
versionMetadata: VersionMetadata,
options: Pick<
PluginOptions,
'include' | 'exclude' | 'showLastUpdateAuthor' | 'showLastUpdateTime'
>,
): Promise<DocFile[]> {
console.log(versionMetadata.contentPath);
const sources = await Globby(options.include, {
cwd: versionMetadata.contentPath,
ignore: options.exclude,
});
return Promise.all(
sources.map((source) => readDocFile(versionMetadata, source, options)),
);
} LogPS E:\nodejs\docusaurus> yarn
yarn install v1.22.5
[1/4] Resolving packages...
success Already up-to-date.
$ yarn lock:update && yarn build:packages
yarn run v1.22.5
$ npx yarn-deduplicate
Done in 1.12s.
yarn run v1.22.5
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 2.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 2.5s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 2.6s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/core' in 5.0s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 3.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 3.8s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 3.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.0s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 4.1s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.2s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.4s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 4.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 4.8s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 4.3s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 181ms
lib\theme\IdealImage\index.js 30ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 7.1s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 8.0s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 58ms
lib\index.js 16ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 22ms
lib\theme\ReactLiveScope\index.js 3ms
lib\validateThemeConfig.js 9ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.7s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 41ms
lib\client\useAlgoliaContextualFacetFilters.js 17ms
lib\index.js 30ms
lib\templates\opensearch.js 4ms
lib\theme\SearchBar\index.js 38ms
lib\theme\SearchPage\index.js 83ms
lib\validateThemeConfig.js 22ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 14.1s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (3402ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (877ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 75ms
lib-next\__tests__\validateThemeConfig.test.js 84ms
lib-next\deps.d.ts 363ms
lib-next\getSwizzleConfig.js 19ms
lib-next\index.js 27ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 181ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 7ms
lib-next\theme\BackToTopButton\index.js 3ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 6ms
lib-next\theme\BlogListPage\index.js 11ms
lib-next\theme\BlogListPaginator\index.js 9ms
lib-next\theme\BlogPostAuthor\index.js 7ms
lib-next\theme\BlogPostAuthors\index.js 7ms
lib-next\theme\BlogPostItem\index.js 15ms
lib-next\theme\BlogPostPage\index.js 10ms
lib-next\theme\BlogPostPaginator\index.js 5ms
lib-next\theme\BlogSidebar\index.js 4ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 4ms
lib-next\theme\CodeBlock\CopyButton\index.js 4ms
lib-next\theme\CodeBlock\index.js 13ms
lib-next\theme\ColorModeToggle\index.js 6ms
lib-next\theme\Details\index.js 2ms
lib-next\theme\DocBreadcrumbs\index.js 6ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 4ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 6ms
lib-next\theme\DocItem\index.js 12ms
lib-next\theme\DocItemFooter\index.js 8ms
lib-next\theme\DocPage\index.js 6ms
lib-next\theme\DocPage\Layout\Aside.js 7ms
lib-next\theme\DocPage\Layout\index.js 3ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 2ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 2ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 2ms
lib-next\theme\DocSidebar\index.js 3ms
lib-next\theme\DocSidebar\Mobile\index.js 4ms
lib-next\theme\DocSidebarItem\Category.js 13ms
lib-next\theme\DocSidebarItem\Html.js 2ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 4ms
lib-next\theme\DocSidebarItems\index.js 3ms
lib-next\theme\DocTagDocListPage\index.js 6ms
lib-next\theme\DocTagsListPage\index.js 7ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 7ms
lib-next\theme\EditThisPage\index.js 3ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 3ms
lib-next\theme\Footer\index.js 2ms
lib-next\theme\Footer\Layout\index.js 3ms
lib-next\theme\Footer\LinkItem\index.js 2ms
lib-next\theme\Footer\Links\index.js 2ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 2ms
lib-next\theme\Footer\Logo\index.js 3ms
lib-next\theme\Heading\index.js 3ms
lib-next\theme\IconArrow\index.js 8ms
lib-next\theme\IconClose\index.js 3ms
lib-next\theme\IconDarkMode\index.js 1ms
lib-next\theme\IconEdit\index.js 2ms
lib-next\theme\IconExternalLink\index.js 2ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 2ms
lib-next\theme\IconMenu\index.js 2ms
lib-next\theme\LastUpdated\index.js 3ms
lib-next\theme\Layout\index.js 2ms
lib-next\theme\LayoutProviders\index.js 1ms
lib-next\theme\Logo\index.js 8ms
lib-next\theme\MDXComponents\A.js 2ms
lib-next\theme\MDXComponents\Code.js 3ms
lib-next\theme\MDXComponents\Details.js 2ms
lib-next\theme\MDXComponents\Head.js 2ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 2ms
lib-next\theme\MDXComponents\index.js 2ms
lib-next\theme\MDXComponents\Pre.js 1ms
lib-next\theme\MDXComponents\Ul.js 2ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 7ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 5ms
lib-next\theme\Navbar\index.js 1ms
lib-next\theme\Navbar\Layout\index.js 3ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 2ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 3ms
lib-next\theme\NavbarItem\DocNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 8ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 9ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 8ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 11ms
lib-next\theme\NavbarItem\index.js 4ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 4ms
lib-next\theme\NavbarItem\NavbarNavLink.js 4ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 1ms
lib-next\theme\NavbarItem\utils.js 2ms
lib-next\theme\NotFound.js 2ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 3ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 2ms
lib-next\theme\SiteMetadata\index.js 6ms
lib-next\theme\SkipToContent\index.js 8ms
lib-next\theme\TabItem\index.js 2ms
lib-next\theme\Tabs\__tests__\index.test.js 10ms
lib-next\theme\Tabs\index.js 13ms
lib-next\theme\Tag\index.js 3ms
lib-next\theme\TagsListByLetter\index.js 3ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 2ms
lib-next\theme\TOC\index.js 2ms
lib-next\theme\TOCCollapsible\index.js 3ms
lib-next\theme\TOCInline\index.js 2ms
lib-next\theme\TOCItems\index.js 4ms
lib-next\translations.js 12ms
lib-next\validateThemeConfig.js 37ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.5s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 38.3s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
Done in 38.76s.
$ husky install
husky - Git hooks installed
Done in 41.11s.
PS E:\nodejs\docusaurus> yarn start
yarn run v1.22.5
$ yarn build:packages && yarn start:website
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 2.4s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 2.6s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/core' in 5.0s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 3.3s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 4.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 4.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.5s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 4.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 4.7s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.7s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.7s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 4.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 2.9s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 7.2s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 73ms
lib\theme\IdealImage\index.js 27ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 8.0s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 57ms
lib\index.js 18ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 23ms
lib\theme\ReactLiveScope\index.js 2ms
lib\validateThemeConfig.js 10ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.4s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 42ms
lib\client\useAlgoliaContextualFacetFilters.js 18ms
lib\index.js 30ms
lib\templates\opensearch.js 3ms
lib\theme\SearchBar\index.js 38ms
lib\theme\SearchPage\index.js 84ms
lib\validateThemeConfig.js 22ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 11.6s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (1604ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (910ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 79ms
lib-next\__tests__\validateThemeConfig.test.js 86ms
lib-next\deps.d.ts 333ms
lib-next\getSwizzleConfig.js 21ms
lib-next\index.js 25ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 180ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 7ms
lib-next\theme\BackToTopButton\index.js 4ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 7ms
lib-next\theme\BlogListPage\index.js 10ms
lib-next\theme\BlogListPaginator\index.js 9ms
lib-next\theme\BlogPostAuthor\index.js 8ms
lib-next\theme\BlogPostAuthors\index.js 7ms
lib-next\theme\BlogPostItem\index.js 17ms
lib-next\theme\BlogPostPage\index.js 8ms
lib-next\theme\BlogPostPaginator\index.js 7ms
lib-next\theme\BlogSidebar\index.js 4ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 4ms
lib-next\theme\CodeBlock\CopyButton\index.js 5ms
lib-next\theme\CodeBlock\index.js 12ms
lib-next\theme\ColorModeToggle\index.js 5ms
lib-next\theme\Details\index.js 3ms
lib-next\theme\DocBreadcrumbs\index.js 7ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 5ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 6ms
lib-next\theme\DocItem\index.js 13ms
lib-next\theme\DocItemFooter\index.js 8ms
lib-next\theme\DocPage\index.js 6ms
lib-next\theme\DocPage\Layout\Aside.js 6ms
lib-next\theme\DocPage\Layout\index.js 3ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 2ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 3ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 3ms
lib-next\theme\DocSidebar\index.js 2ms
lib-next\theme\DocSidebar\Mobile\index.js 3ms
lib-next\theme\DocSidebarItem\Category.js 13ms
lib-next\theme\DocSidebarItem\Html.js 2ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 3ms
lib-next\theme\DocSidebarItems\index.js 4ms
lib-next\theme\DocTagDocListPage\index.js 6ms
lib-next\theme\DocTagsListPage\index.js 6ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 8ms
lib-next\theme\EditThisPage\index.js 4ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 3ms
lib-next\theme\Footer\index.js 2ms
lib-next\theme\Footer\Layout\index.js 3ms
lib-next\theme\Footer\LinkItem\index.js 3ms
lib-next\theme\Footer\Links\index.js 2ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 3ms
lib-next\theme\Footer\Logo\index.js 2ms
lib-next\theme\Heading\index.js 3ms
lib-next\theme\IconArrow\index.js 8ms
lib-next\theme\IconClose\index.js 2ms
lib-next\theme\IconDarkMode\index.js 2ms
lib-next\theme\IconEdit\index.js 2ms
lib-next\theme\IconExternalLink\index.js 2ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 1ms
lib-next\theme\IconMenu\index.js 3ms
lib-next\theme\LastUpdated\index.js 4ms
lib-next\theme\Layout\index.js 3ms
lib-next\theme\LayoutProviders\index.js 1ms
lib-next\theme\Logo\index.js 8ms
lib-next\theme\MDXComponents\A.js 2ms
lib-next\theme\MDXComponents\Code.js 3ms
lib-next\theme\MDXComponents\Details.js 2ms
lib-next\theme\MDXComponents\Head.js 2ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 1ms
lib-next\theme\MDXComponents\index.js 3ms
lib-next\theme\MDXComponents\Pre.js 2ms
lib-next\theme\MDXComponents\Ul.js 3ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 7ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 4ms
lib-next\theme\Navbar\index.js 1ms
lib-next\theme\Navbar\Layout\index.js 4ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 2ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 7ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 9ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 9ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 11ms
lib-next\theme\NavbarItem\index.js 4ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 4ms
lib-next\theme\NavbarItem\NavbarNavLink.js 4ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 1ms
lib-next\theme\NavbarItem\utils.js 1ms
lib-next\theme\NotFound.js 2ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 2ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 3ms
lib-next\theme\SiteMetadata\index.js 6ms
lib-next\theme\SkipToContent\index.js 8ms
lib-next\theme\TabItem\index.js 2ms
lib-next\theme\Tabs\__tests__\index.test.js 10ms
lib-next\theme\Tabs\index.js 13ms
lib-next\theme\Tag\index.js 3ms
lib-next\theme\TagsListByLetter\index.js 3ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 3ms
lib-next\theme\TOC\index.js 1ms
lib-next\theme\TOCCollapsible\index.js 4ms
lib-next\theme\TOCInline\index.js 1ms
lib-next\theme\TOCItems\index.js 4ms
lib-next\translations.js 13ms
lib-next\validateThemeConfig.js 29ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.4s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 34.5s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
$ yarn workspace website start
$ docusaurus start
[INFO] Starting the development server...
E:\nodejs\docusaurus\website\docs
E:\nodejs\docusaurus\website\versioned_docs\version-2.0.0-beta.18
E:\nodejs\docusaurus\website\versioned_docs\version-2.0.0-beta.17
E:\nodejs\docusaurus\website\community
E:\nodejs\docusaurus\website\_dogfooding\docs-tests-symlink
[ERROR] Loading of version failed for version current
[ERROR] Error: The `cwd` option must be a path to a directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: D:\scoop\apps\nodejs-lts\current\node.exe
Arguments: D:\scoop\persist\nodejs-lts\bin\node_modules\yarn\lib\cli.js start
Directory: E:\nodejs\docusaurus\website
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
Thanks. Since I don't have a windows machine, could you tell me if |
I'm still afraid you need to self-service there, unless another Windows contributor likes to step in and debug this. Thanks for understanding |
Thank you, but I hope you can provide some ideas |
Could you try |
I think the ossrs/srs-docs#11 (comment) It's the same question |
the same problem happen to me. |
@intellijboy You need to remove the |
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
I cloned this project, but it failed to run. It only succeeded on the Mac
Reproducible demo
No response
Steps to reproduce
git clone https://github.com/facebook/docusaurus.git
cd docusaurus
yarn install
yarn start
get the same errors:[ERROR] Loading of version failed for version current
[ERROR] Error: The
cwd
option must be a path to a directorygit clone https://github.com/facebook/docusaurus.git
cd docusaurus
yarn install
yarn start
Expected behavior
windows11, wsl2-ubuntu and wsl2-arch run success
Actual behavior
Log
Your environment
Self-service
The text was updated successfully, but these errors were encountered: