jingleisi 2019-06-30
Mac
下运行npm
命令时不知什么原因报错如下:☁ myhexo_blog [master] ⚡ node -v dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib Referenced from: /usr/local/bin/node Reason: image not found [1] 33278 abort node -v
☁ myhexo_blog [master] ⚡ brew uninstall --force node Uninstalling node... (4,152 files, 47.9MB)☁ myhexo_blog [master] ⚡ brew uninstall icu4c && brew install icu4c Error: Refusing to uninstall /usr/local/Cellar/icu4c/63.1because it is required by php and [email protected], which are currently installed.You can override this and force removal with: brew uninstall --ignore-dependencies icu4c☁ myhexo_blog [master] ⚡ brew unlink icu4c && brew link icu4c –forceUnlinking /usr/local/Cellar/icu4c/63.1... 0 symlinks removedError: No such keg: /usr/local/Cellar/–force☁ myhexo_blog [master] ⚡ brew install nodeUpdating Homebrew...==> Downloading https://homebrew.bintray.com/bottles/node-11.8.0.mojave.bottle.t######################################################################## 100.0%==> Pouring node-11.8.0.mojave.bottle.tar.gz==> CaveatsBash completion has been installed to: /usr/local/etc/bash_completion.d==> Summary
执行命令brew install php72,出现下图即为安装成功;需要按照提示添加环境变量;重新加载配置|重启|停止|退出 nginxnginx -s reload|reopen|stop|quit
由于mac自带brew,所以mac下安装nginx相对比较简单。详细步骤请继续阅读:。由于我的brew版本比较旧,所以进行了更新。此处需要漫长的等待...可通过以下命令查看nginx信息,如安装路径等