Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Cannot find module 'protagonist' #137

Open
gioxoay opened this issue Jun 26, 2020 · 2 comments
Open

Cannot find module 'protagonist' #137

gioxoay opened this issue Jun 26, 2020 · 2 comments

Comments

@gioxoay
Copy link

gioxoay commented Jun 26, 2020

I using npm to install: npm install -g snowboard

Then run below command but throw exception:

sudo snowboard http -b 0.0.0.0:8088 --watch ./graphqlapi.apib
Error: Cannot find module 'protagonist'
Code: MODULE_NOT_FOUND

Please help me!

@VulkanX
Copy link

VulkanX commented Jul 8, 2020

I'm having the same error... Ubuntu 20.04
any resolution?

@stevebaxter
Copy link

The solution is probably to change snowboard to use drafter (https://www.npmjs.com/package/drafter) rather than using protagonist directly. Protagonist may not be available for every platform (it uses node-gyp to compile C++ code), drafter will fall back on the JS transpiled version of protagnist (drafter.js).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants