dreamyguy / gitlogg

💾 🧮 🤯 Parse the 'git log' of multiple repos to 'JSON'
MIT License
130 stars 27 forks source link

Couldn't find preset "es2015" relative to directory #4

Closed Mihailoff closed 8 years ago

Mihailoff commented 8 years ago

Hello, I'm trying to follow simple mode and generate something

git checkout v0.1.4
./gitlogg.sh

Generating git log for all repositories located at '../repos/*/'. This might take a while! The file ./gitlogg.tmp generated in: 1s Error: Couldn't find preset "es2015" relative to directory "/Users/user/folder/gitlogg" at /usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:395:17 at Array.map (native) at OptionManager.resolvePresets (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:387:20) at OptionManager.mergePresets (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:370:10) at OptionManager.mergeOptions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:330:14) at OptionManager.addConfig (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:232:10) at OptionManager.findConfigs (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:436:16) at OptionManager.init (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:484:12) at File.initOptions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:223:65) at new File (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:140:24)

node -v v4.4.3

OSX 10.11.5

dreamyguy commented 8 years ago

Hi @Mihailoff I haven't tried to reproduce your error but it looks like you're missing one or more of the requirements.

If you run npm install you're supposed to get the es2015 preset from here.

Also don't forget to install babel-cli globally by running npm install babel-cli -g

dreamyguy commented 8 years ago

OK, I've reproduced and resolved your error by doing the following steps:

That's the state you're in. To resolve the error, make sure you're at the repo's root. From my current location, I did:

I'm taking the liberty to close the issue, since the solution is written above. As stated, what you need is to run npm install at the root of your clone/fork, cd to gitlogg folder and run the shell script again. 😉

Mihailoff commented 8 years ago

Thank you, looks like I've missed 3rd step from https://github.com/dreamyguy/gitlogg#requirements

Now works.

dreamyguy commented 8 years ago

I'm glad to hear that @Mihailoff, have fun!