今天用eslint, 咋都不行, 是npm的坑. 无法成功安装各种依赖.

npm i --registry=https://registry.npm.taobao.org

#或者在 .zshrc 里面加一条 就可以用 cnpm 了

alias cnpm="npm --registry=https://registry.npm.taobao.org \
--disturl=https://npm.taobao.org/dist"

# 如果报高危漏洞, 需要 npm audit fix, 但是运行这个会报错, 需要: 
cnpm audit fix