infinitered / solidarity

Solidarity is an environment checker for project dependencies across multiple machines.
https://infinitered.github.io/solidarity/
MIT License
640 stars 49 forks source link

No solidarity plugins found! #221

Closed adrienthiery closed 6 years ago

adrienthiery commented 6 years ago

Hi there,

Giving a try to solidarity, installed globally solidarity and solidarity-react-native then ran solidarity snapshot in a React Native project and I keep getting :

$ solidarity snapshot                                                                                                                     ✔  09:16
? No `.solidarity` file found for this project.  Would you like to create one? true
-----------------------------------------------------------------------------------
Available technology plugins:

No solidarity plugins found!
      Add a plugin for a given technology:
      https://github.com/infinitered/solidarity/blob/master/docs/pluginsList.md
      OR write your own plugin for generating rules:
      https://github.com/infinitered/solidarity/blob/master/docs/plugins.md
      OR simply create a .solidarity rule-set by hand for this project:
      https://github.com/infinitered/solidarity/blob/master/docs/options.md

-----------------------------------------------------------------------------------

What am I missing ? 😕

GantMan commented 6 years ago

Strange it can't seem to find the plugin!!!! It should have found it globally, but do you have nvm or something moving your globals?

Can you try installing solidarity-react-native locally and let me know if that works? If it does then I just need to get the location where your global node modules are being installed and add that to the paths to check.

adrienthiery commented 6 years ago

Hey @GantMan , It does work when installed locally.

I use yarn to add global dependencies, so the plugin is indeed installed in ~/.config/yarn/global/node_modules/solidarity-react-native/

GantMan commented 6 years ago

Care to do the PR?

You'd add a path like this one for another directory to check: https://github.com/infinitered/solidarity/blob/master/src/index.ts#L11