Zend Framework 2:没有提供基本路径

Using Zend Framework 2 with Apigility and I get this error when running the command:

php public/index.php development enable

PHP Fatal error:  Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'No base path provided' in /var/www/vendor/zendframework/zend-view/src/Helper/BasePath.php:38

There is some changes in new version. See https://apigility.org/documentation/modules/zf-development-mode for correct call to enable dev mode.