Can a non-resident on a J1 visa get child tax credit?

I am a non-resident on a J1 visa. I have my spouse (non resident) and US citizen child. Can I get a child tax credit? IRS told me that I can't claim dependents because I am a non-resident.