I have a 2015 Nissan Altima. When I barely accelerate, the RPM shoots up to 4-5 but the car barely picks up speed. This all happens while the car is in drive, then my engine light turned on. What could possibly be wrong with my car?
If it's a manual transmission, it sounds like the clutch slipping, either from something within the clutch breaking, or something preventing the pressure plate from returning, such as an obstruction within the hydraulic clutch line.
If it's an automatic transmission then you have internal damage. If it's not shifting at all it may be in "limp mode" that allows the engine to run but limits the shifting of the transmission. The car should not be driven more than a couple of hundred yards in this condition. In any case, it should be checked by a professional if you do not do major repairs yourself. It could be something as simple as a bad sensor or broken wire causing it to not shift, or could be costly internal damage. You can try to smell your transmission fluid dipstick and if it smells like burnt sugar or plastic, then that's really bad. But it may still be damaged even with no smell. As another poster said, get the codes scanned, but a pro is probably still going to be required.