royriojas / eslint-friendly-formatter

A simple formatter/reporter for ESLint that's friendly with Sublime Text and iterm2 "click to open file" functionality
MIT License
198 stars 28 forks source link

Could not find formatter 'node_modules/eslint-friendly-formatter/index.js'. (Doesn't work with a fresh node_modules) #3

Closed MoOx closed 9 years ago

MoOx commented 9 years ago

I just get an issue on Travis CI about complaining about not finding this formatter. So I cleaned my local node_modules and reinstalled from my pakcage.json and now I get this

$ eslint -f node_modules/eslint-friendly-formatter/index.js --ext .js,.jsx,.es .

Could not find formatter 'node_modules/eslint-friendly-formatter/index.js'.

npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/MoOx/.nvm/versions/io.js/v2.0.1/bin/iojs" "/Users/MoOx/.nvm/version
js/v2.0.1/bin/npm" "run" "lint"
npm ERR! node v2.0.1
npm ERR! npm  v2.9.0
npm ERR! code ELIFECYCLE
npm ERR! putaindecode.fr@0.0.0 lint: `eslint -f node_modules/eslint-friendly-formatter/in
s --ext .js,.jsx,.es .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the putaindecode.fr@0.0.0 lint script 'eslint -f node_modules/eslint-f
ly-formatter/index.js --ext .js,.jsx,.es .'.
npm ERR! This is most likely a problem with the putaindecode.fr package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint -f node_modules/eslint-friendly-formatter/index.js --ext .js,.jsx,.es
npm ERR! You can get their info via:
npm ERR!     npm owner ls putaindecode.fr
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/MoOx/Sync/Development/putaindecode/putaindecode.fr/npm-debug.log

~/Sync/Development/putaindecode/putaindecode.fr feat.hero*    ⇡
❯❯ ls node_modules/eslint-friendly-formatter/index.js
node_modules/eslint-friendly-formatter/index.js

As you can see with the ls above, the file exist (and have the expected content). eslint cli still have this option so not sure what is going on.

Any idea ?

royriojas commented 9 years ago

mmm, sorry my bad. I found the issue in the meantime you can use the previous version. Basically a file was not included inside the package and it is breaking things. Thanks for the report

royriojas commented 9 years ago

Closed in v1.0.7. Please test it and close it if it now works for you. Thanks for the report