The inner exception was pointing to this line when processing `jscs` package. Their `package.json` has no `main` member defined.