Skip to main content

Traps and Tricks on installing POWr Repo

This is a brief article for engineers who had Ruby/Postgres/Node installed on their MAC OS before.

Ruby version

If you have had ruby version > ~2.3.1 you need to downgrade version to one that stated in GemFile (2.3.1)

Postgres

Install Postgres through brew command line:

$: brew install postgres

Schema

It's only for the first initialization of database. Must run before rake db:migrate.

$: bundle exec rake db:schema:load

NPM

If you have some errors with node modules, like: cannot find module... Just remove npm from your machine and delete node_modules folder in project folder and install both of them again

$: sudo rm -rf /usr/local/lib/node_modules/npm
$: brew reinstall node

Heroic library

In some cases library requests a version that is lower than it is stated in GemFile, for installing dependencies. Command line will show the errors and the solution :) Just follow the steps, like downgrading versions in GemFile etc.