Serverless config credentials.. giving me EISDIR error

I have gone through the docs properly installed serverless but when I tried to configure my AWS credentials I get this error -

EISDIR: illegal operation on a directory, read

I can only assume a path varible is off and the program is trying to read a file that is a dir. I have created an angular project and had no issues. I mention this because my google searches lead me to believe this may have to do with how serverless is using NPM.

Any ideas to what is going on here?

Thanks