when the package.json is
```js
license: 'MIT'
```
there is no licenses, and it will throw error