krampstudio/grunt-jsdoc

support for npm@3 flattened modules

leobalter opened this issue · 3 comments

npm introduced flattened modules on 3.x.x versions, since then, grunt-jsdoc needs to be adapted to handle this or it breaks.

Running "jsdoc:src" (jsdoc) task
>> FATAL: Unable to load template: Cannot find module 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template/publish'
Warning: jsdoc terminated with a non-zero exit code Use --force to continue.

maybe it's my bad.

On my task options I was setting template: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',

This still requires an update on the readme file.

Good point. I though npm 3 was still in beta and had some time left, but it seems it's time to support it.

npm i -g npm already brings it.