Installation error with Composer I'm trying to install Drupal 8 with Composer. Drupal Console is already installed (in case that's relevant), so I go to my localhost folder (working locally) and type: 

composer create-project drupal-composer/drupal-project:8.x-dev cmpsprjct --stability dev --no-interaction


Everything runs well with the composer installation in the terminal. When I try to proceed with the installation in the browser I get following error: 

Additional uncaught exception thrown while handling exception.
Original

TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::reset() must be an instance of Doctrine\Common\Annotations\void, none returned in Doctrine\Common\Annotations\AnnotationRegistry::reset() (line 55 of /var/www/html/cmpsprjct/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php).

Doctrine\Common\Annotations\AnnotationRegistry::reset() (Line: 113)
Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery-&gt;getDefinitions() (Line: 86)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator-&gt;getDefinitions() (Line: 283)
Drupal\Core\Plugin\DefaultPluginManager-&gt;findDefinitions() (Line: 174)
Drupal\Core\Plugin\DefaultPluginManager-&gt;getDefinitions() (Line: 109)
Drupal\Core\Render\ElementInfoManager-&gt;buildInfo('seven') (Line: 76)
Drupal\Core\Render\ElementInfoManager-&gt;getInfo('form') (Line: 806)
Drupal\Core\Form\FormBuilder-&gt;prepareForm('install_select_language_form', Array, Object) (Line: 272)
Drupal\Core\Form\FormBuilder-&gt;buildForm('install_select_language_form', Object) (Line: 898)
install_get_form('Drupal\Core\Installer\Form\SelectLanguageForm', Array) (Line: 1324)
install_select_language(Array) (Line: 670)
install_run_task(Array, Array) (Line: 548)
install_run_tasks(Array) (Line: 117)
install_drupal(Object) (Line: 44)

Additional

TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::reset() must be an instance of Doctrine\Common\Annotations\void, none returned in Doctrine\Common\Annotations\AnnotationRegistry::reset() (line 55 of /var/www/html/cmpsprjct/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php).

Doctrine\Common\Annotations\AnnotationRegistry::reset() (Line: 113)
Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery-&gt;getDefinitions() (Line: 86)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator-&gt;getDefinitions() (Line: 283)
Drupal\Core\Plugin\DefaultPluginManager-&gt;findDefinitions() (Line: 174)
Drupal\Core\Plugin\DefaultPluginManager-&gt;getDefinitions() (Line: 109)
Drupal\Core\Render\ElementInfoManager-&gt;buildInfo('seven') (Line: 76)
Drupal\Core\Render\ElementInfoManager-&gt;getInfo('html') (Line: 298)
Drupal\Core\Render\Renderer-&gt;doRender(Array, 1) (Line: 195)
Drupal\Core\Render\Renderer-&gt;render(Array, 1) (Line: 139)
Drupal\Core\Render\Renderer-&gt;Drupal\Core\Render\{closure}() (Line: 576)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 140)
Drupal\Core\Render\Renderer-&gt;renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer-&gt;renderBarePage(Array, 'Error', 'install_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer-&gt;renderBarePage(Array, 'Error', 'install_page', Array) (Line: 1004)
install_display_output(Array, Array, Array) (Line: 264)
_drupal_log_error(Array, 1) (Line: 584)
_drupal_exception_handler(Object)


I have searched in Google and found that a composer update could solve the problem, but it didn't. 
Any hints about how to proceed?

Working with Ubuntu 17.04 and php 7.1
Please make sure your webserver (nginx/apache) is using the same PHP version as your cli one. For example, you may encounter this issue if your cli PHP version is PHP 7.1 and your webserver is using PHP 7.0.