**Prettier 1.10.0** ``` $ npm i -g prettier /usr/local/bin/prettier -> /usr/local/lib/node_modules/prettier/bin/prettier.js + prettier@1.10.0 added 1 package in 0.619s $ prettier module.js:529 throw err; ^ Error: Cannot find module '../../index' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object.<anonymous> (/usr/local/lib/node_modules/prettier/bin/prettier.js:38012:20) ``` **Expected behavior:** It would list out the options
Activity
fatso83 commentedon Jan 10, 2018
By changing the
requirestatements in line 38012 and 38746 from../../indexto../indexthe CLI starts working again.fatso83 commentedon Jan 10, 2018
This is fixed by 1.10.1!
That's a quick turnaround (less than 10 minutes from issue reported) 😮
The fix has not been pushed yet, though, but it's on NPM.
azz commentedon Jan 10, 2018
Sorry about that! Looks like our distribution tests didn't catch this. I've patched it in 1.10.1 but we'll have to improve the process.
fatso83 commentedon Jan 10, 2018
Thanks for the quick turnaround!
azz commentedon Jan 10, 2018
Fix is in cf511ec, I've opened #3698 to prevent this in the future.