命令行

来源:互联网 发布:汉化 知乎 编辑:程序博客网 时间:2024/06/08 19:30

一、Mac OS
1.查看端口占用: lsof -i tcp:port (port 替换为 端口号)
2.添加环境变量:
1)vi ~/.bash_profile
2)export PATH=/Users/xinlu/Library/Android/sdk/platform-tools:$PATH
3)source ~/.bash_profile (即时生效)

注:如果安装过zsh的用户,需要在.zshrc文件下添加source ~/.bash_profile



二、HomeBrew
1.解决Another active Homebrew update process is already in progress
  答:rm -rf /usr/local/Library/Locks/*


三、Node
1.升级node:
a)安装 n 模块: npm install -g n
b)安装
最新稳定版本:n stable
        某个版本: n v8.0.0
        最新版本: n latest
2)升级npm:
a)npm -g install npm@next

原创粉丝点击