bfncs/codemod-imports-sort

Installing globally does not work on OS X

Opened this issue · 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

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'

bfncs commented

Thanks for reporting the issue. This is caused by inxilpro/node-app-root-path#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.