Date: 201908
Local time of day: 1201-1800
Location: ZZZ.Airport, US
Flight conditions: VMC
Light: Daylight
Aircraft: EMB ERJ 140 ER/LR
Operator: Air Carrier
Operating under: Part 121
Flight plan: IFR
Mission: Passenger
Flight phase: Climb
Airspace: Class B ZZZ
ATC / advisory: TRACON ZZZ
Second aircraft: Any Unknown or Unlisted Aircraft Manufacturer
Aircraft component: Pressurization System
Component problem: Malfunctioning
Reporter organization: Air Carrier
Reporter function: Captain; Pilot Not Flying
Reporter qualification: Flight Crew Multiengine; Flight Crew Instrument; Flight Crew Air Transport Pilot (ATP)
Second reporter function: Pilot Flying; First Officer
Anomaly: Aircraft Equipment Problem Less Severe; Conflict Airborne Conflict
Detector: Person Flight Crew
When detected: In-flight
Result: Flight Crew Landed As Precaution; Flight Crew Returned To Departure Airport; Flight Crew Took Evasive Action; General Flight Cancelled / Delayed; General Maintenance Action
Contributing factors: Aircraft
Primary problem: Aircraft

Narrative: Everything was normal through takeoff. The FO (First Officer) did a TO-takeoff. Prior to completing the after takeoff checklist; we got a RAM AIR VLV FAIL caution message on the EICAS. Associated with this message was the PACK 1-2 VLV FAIL status and the PACK 1-2 VLV CLSD status message. I selected climb mode and reset the packs; but that didn't help. The aircraft wasn't pressurizing; so I instructed the FO to level off and I contacted ATC and told them that we needed to level off and run a few checklists before concluding whether we needed to declare an emergency. They gave us 3;000 feet and a heading and we complied. They asked if we were declaring an emergency and I responded 'standby.'We ran the RAM AIR VLV FAIL checklist and requested to divert to [a nearby alternate] for longer runways and possible overweight landing. They continued to give us vectors while we ran checklists and communicated with the Flight Attendant; passengers; Dispatch; and each other. We decided that since we were stable at a low altitude; the best course of action would be to continue burning fuel until we were under our max landing weight before attempting a landing. We slowed; dropped our gear and 9 degrees of flaps to help burn the extra fuel. Dispatch added [the nearby airport] as an alternate to our flight plan. The Flight Attendant was told that we would do a normal landing with no evacuation. While we were getting set up to land; Dispatch asked if we would be ok to land in [departure airport] and we responded in the affirmative. I sent a message over ACARS to inform Maintenance of the issue. We decided that I would do the landing; re-coupled the aircraft to my side and I took the controls.We informed the Flight Attendant; passengers and ATC that we wanted to go back to [departure airport] and while we were getting set up; we received an RA (Resolution Advisory) to climb. I disconnected the autopilot and followed the RA instructions until clear of conflict; then returned to altitude. We informed ATC and they continued to give us vectors with no further traffic issues. It looked like VFR traffic. The FO set up for the approach. It was going to be a normal landing at this point; but Tower rolled the CFR (Crash Fire Rescue) trucks as a precaution. We executed a normal landing. The passengers deplaned normally with no complaints. I made an appropriate entry in the AML (Aircraft Maintenance Logbook) and contacted [Maintenance Control] per our SOP. Maintenance came and took the plane from us as we were taken to a new plane to continue the flight.A failure of the RAM Air Valve caused the packs to fail to pressurize the airplane. This required us to return to the airport. The RA was caused by VFR traffic over the bay getting too close to our aircraft. I thought that everyone did a fantastic job in a crowded airspace to get us safely back on the ground.


Second narrative: [Report narrative contained no additional information.]


Synopsis: EMB-140 flight crew reported returning to departure airport after noting a RAM AIR VLV FAIL EICAS message that resulted in their inability to pressurize the cabin.