Cannot find namespace NodeJS

I'm using Ionic2 and socket.io When I do ionic serve I get this error in the terminal: TypeScript error: typings/globals/socket.io/index.d.ts(357,30): Error TS2503: Cannot find namespace 'NodeJS'.