commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.77k stars 551 forks source link

NPM@3 support #16

Closed jimthedev closed 8 years ago

jimthedev commented 9 years ago

Npm's flat modules break existing commitizen functionality. In order to fix these issues there needs to be some major architectural changes in Commitizen 2 and in the adapters.

baer commented 9 years ago

21 hours before me! Looks like I'm running into the same problem - here is a little extra error info:

commitizen
Potentially unhandled rejection [3] Error: Error loading "node_modules/word-wrap/index" at file:/Users/ebaer/dev/personal/freelance/lnc/sales-backbone/node_modules/cz-conventional-changelog/node_modules/word-wrap/index.js
Error loading "node_modules/word-wrap/index" from "index" at file:/Users/ebaer/dev/personal/freelance/lnc/sales-backbone/node_modules/cz-conventional-changelog/index.js
ENOENT: no such file or directory, open '/Users/ebaer/dev/personal/freelance/lnc/sales-backbone/node_modules/cz-conventional-changelog/node_modules/word-wrap/index.js'
    at Error (native)
olalonde commented 8 years ago

Running in same problem.

jimthedev commented 8 years ago

@baer @olalonde Thanks for your patience. This is a known issue with npm3 and thankfully I am almost done with a test suite and npm3 fix. Should be out in the next few days I'd imagine.

olalonde commented 8 years ago

Thanks. I reverted to an older release for now.

jimthedev commented 8 years ago

Quick update. This is coming along nicely in Commitizen 2.0.

NPM@3

screen shot 2015-10-15 at 11 33 21 am

NPM@2

screen shot 2015-10-15 at 11 50 06 am