doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.55k stars 1.45k forks source link

node_modules\.bin\gatsby #1714

Closed XueWenPeng closed 2 years ago

XueWenPeng commented 2 years ago

Bug Report

By run docz dev, it's show node_modules.bin\gatsby not an internal or external command, nor a runnable program or batch file

I saw code in node_modules\docz-core\dist\index.js: const gatsbyPath = path$1__default.join(repoRootPath, 'node_modules/.bin/gatsby');

spawn$1(gatsbyPath, ['develop', '--host', `${args.host}`, '--port', `${args.port}`, useHttps ? '--https' : '', ...caFileOption, ...keyFileOption, ...certFileOption].filter(Boolean), {
    stdio: 'inherit',
    cwd: docz
  });

but there is no gatsby file in node_modules\.bin

zhuyudong commented 2 years ago

npm i gatsby-cli or yarn add gatsby-cli

XueWenPeng commented 2 years ago

npm i gatsby-cli or yarn add gatsby-cli

谢谢!

FontEndArt commented 2 years ago

请恕我直言,官方入门文档上并没有找到关于这段描述,导致我一度以为是自己操作有问题