Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: Cannot find module 'editions' #1088
Fresh install of docpad, locally or globally, I get the same error.
docpad: 6.81.0 and 6.80.9
Error: Cannot find module 'editions'
This specific example is from "docpad init" but I get the same running "docpad -v", really anything with docpad.
@balupton after some trial and error, I have established that the module "editions" is in fact installed, in a spot that globally installed docpad can reach it. From what I have found so far, only modules using editions are having problems loading, which I verified by modifying bin.js to try and load "ambi" first.
My hunch is that the initial require for "editions" is attempting to load editions/package.json -> main. From there, it's a number of possibilities:
See https://discuss.bevry.me/t/error-cannot-find-module-editions/240 for details