When attempting to install Craft 3 in OSX El Cap, I'm getting the following errors:
Script @php craft setup/welcome handling the post-create-project-cmd event returned with error code 255 /Craft3/vendor/craftcms/cms/bootstrap/bootstrap.php on line 104
Parse error: parse error in PATH/vendor/craftcms/cms/bootstrap/bootstrap.php on line 104 Script @php craft setup/welcome handling the post-create-project-cmd event returned with error code 255
I used the --ignore-platform-reqs
flag as I am using PHP7 on MAMP.
When I attempt to load index.php in the browser I'm seeing this seemingly related issue in the trace:
in PATH/web/index.php at line 21 – yii\base\Application::run() 15161718192021 (new Dotenv\Dotenv(CRAFT_BASE_PATH))->load();}
// Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run();
I've substituted "PATH" in all errors in lieu of the actual path.
Any advice on resolving this would be much appreciated.
/path/to/MAMP/PHP7/php /path/to/composer.phar create-project...
?