codemod-imports-sort icon indicating copy to clipboard operation
codemod-imports-sort copied to clipboard

Installing globally does not work on OS X

Open dougbacelar opened this issue 6 years ago • 2 comments

After installing it globally via yarn, it did not generate a required dist folder 🤔

Cloning the repo and running it seems to work fine though.

screen shot 2018-10-16 at 20 33 44

dougbacelar avatar Oct 25 '18 21:10 dougbacelar

Confirm the issue with running from global yarn install; but even after downloading, running codemod-imports-sort throws an error cannot find module 'app-root-path'

afkatja avatar Oct 29 '18 13:10 afkatja

Thanks for reporting the issue. This is caused by https://github.com/inxilpro/node-app-root-path/issues/28. I currently have no device running OSX close though, so I won't be able to debug this soon, any help is appreciated.

I'll certainly update once this is resolved in app-root-path. Cloning and installing manually is the way to get this to work until we make further progress.

@afkatja This is due to missing dependencies after downloading. You will have to run npm install or yarn install in the downloaded directory to make this work.

bfncs avatar Oct 31 '18 06:10 bfncs