Please follow the existing codestyle:

```
.spread(function (canonicalDir, pkgMeta) {
+            if (pkgMeta.private === true) {
+                throw createError('Registration failed. You have specified your package as private.', 'EPRIV');
+            }
```