Cannot find module 'protagonist'
gioxoay opened this issue · 2 comments
gioxoay commented
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 commented
I'm having the same error... Ubuntu 20.04
any resolution?
stevebaxter commented
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).