doczjs / docz

✍ It has never been so easy to document your things!

Home Page:https://docz.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENOENT when using yarn 2 (since node_modules doesn’t exist)

flying-sheep opened this issue · comments

Yarn 2 doesn’t use node_modules, so the following line doesn’t work:

const gatsbyPath = path.join(repoRootPath, 'node_modules/.bin/gatsby')

As a workaround, you could enable node_modules in Yarn 2: https://yarnpkg.com/configuration/yarnrc#nodeLinker