you might want to prefix e with something:

```js
debug('error downloading package', pkgName, e);
```