brandon-olin

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Setup Windows 10 Discussion

Hey there! This guide was VERY useful, as every other guide on the subject I found had untold errors along the way. This one worked perfectly, up one of the very last steps after installing postgresql, where you select it using this:

rails new myapp -d postgresql

I receive this error:

/home/event/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/app_loader.rb:53: warning: Insecure world writable dir /home/event/.rbenv/versions/2.6.5 in PATH, mode 040777
sh: 1: node: not found
sh: 1: nodejs: not found
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/

I installed NodeJS, but I'm still receiving this error. I tried to proceed to the next part regardless, but on this portion of code:

rake db:create

I receive this error:

could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Couldn't create 'myapp_development' database. Please check your configuration.
rake aborted!
ActiveRecord::NoDatabaseError: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


Caused by:
PG::ConnectionBad: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Tasks: TOP => db:create
(See full trace by running task with --trace)

Apologies for the long help request! I'm just starting out in coding, and getting my development environment set up on Windows is taking a good chunk of my time by itself unfortunately.