See Chamil Sanjeewa's answer when using Drupal Console.
If you're having issues with Drupal Console, you don't have access to it, or you're not using drushDrush, you can also do it via the UI.
- Login as an administrator
- point your browser toVisit /admin/reports/status (also located via the menu at Reports->Status report
- Find the NODE ACCESS PERMISSIONSNode access permissions section
- Click on the Rebuild Permissions link (which is also located aton /admin/reports/status/rebuild)