snowboard
snowboard copied to clipboard
Cannot find module 'protagonist'
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!
I'm having the same error... Ubuntu 20.04 any resolution?
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).