You php do not have intl
extension. You can verify it by run php -i
.
In many cases this problem appear when you have different php version/configurations for apache and cli. For example if use install MAMP on MacOsX that you will have different version. To use php in this case you need specify full path to php like /Applications/MAMP/bin/php/php7.0.0/bin/php
To change it you need to do folowing steps:
Edit ~/.bash_profile
and add
export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH
where /Applications/MAMP/bin/php/php7.x.x
should be patch to your latest wersion
In Terminal, run source ~/.bash_profile
In Terminal, type in which php
and look for the updated patch. If everything was successful, It should output the new path to MAMP PHP install.
In case it doesn't output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes (Restart in short).
php bin/magento setup:static-content:deploy
is not the right command to clear cache files. It creates/regenerates the static content. Also, can you specify what version of Magento2, and how did you deploy? via git, composer create project or downloaded a zip from magento.com?