美文网首页
mac 常用命令

mac 常用命令

作者: mayufo | 来源:发表于2018-05-09 22:54 被阅读0次

node

npm ls -g --depth=0 // 查看已经安装在全局的模块,以便删除这些全局模块后再按照不同的 node 版本重新进行全局安装

sudo rm -rf /usr/local/lib/node_modules // 删除全局 node_modules 目录
sudo rm /usr/local/bin/node // 删除 node
cd  /usr/local/bin && ls -l | grep "../lib/node_modules/" | awk '{print $9}'| xargs rm // 删除全局 node 模块注册的软链

mac

command+ control + o // 识别图片中的文字

相关文章

网友评论

      本文标题:mac 常用命令

      本文链接:https://www.haomeiwen.com/subject/solarftx.html