The bcmath extension is required by NumberFormatter

Submitted by dravenk on Fri, 07/14/2017 - 08:51
RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /var/www/html/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php).

 

docker-php-ext-install bcmath  
docker-php-enable bcmath  

docker-php-ext-enable bcmath

 

Reference:  

https://github.com/kalabox/kalabox/issues/1655 

错误修改 PATH

Submitted by dravenk on Sun, 05/28/2017 - 21:58

在编辑 Linux/MAC 的环境变量($PATH)文件.bash_profile或者.profile
到后导致-bash: ** : command not found
解决办法:
export PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin

MAC环境变量

Submitted by dravenk on Sat, 05/27/2017 - 14:54

查看PATH echo $PATH
使用命令行添加 PATH,例如添加~/opt/bin
export PATH=$PATH:~/opt/bin
使用编辑器编辑你的$PATH
vim .bash_profile
或者vim .profile
vim /etc/paths
$PATH 使用:作为分割符号