自定义命令依赖node路径切换
which node //查看当前node安装路径 /Users/zhusuyu/.nvm/versions/node/v14.16.0/bin/node
vim ~/.bash_profile //修改环境配置
alias irn=/Users/zhusuyu/.nvm/versions/node/v14.16.0/lib/node_modules/ihome-rn/lib/index.js
which node //查看当前node安装路径 /Users/zhusuyu/.nvm/versions/node/v14.16.0/bin/node
vim ~/.bash_profile //修改环境配置
alias irn=/Users/zhusuyu/.nvm/versions/node/v14.16.0/lib/node_modules/ihome-rn/lib/index.js