npm和yarn是这代理proxy

2021-05-25 13:09:16

npm和yarn转换淘宝源和官方源

1
2
3
4
5
npm config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npmjs.org/

yarn config set registry http://registry.npm.taobao.org/
yarn config set registry https://registry.npmjs.org/

npm 设置代理

1
2
npm config set proxy http://127.0.0.1:8080
npm config set https-proxy http://127.0.0.1:8080

npm 删除代理

1
2
npm config delete proxy
npm config delete https-proxy

yarn 设置代理

1
2
yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080

yarn 删除代理

1
2
yarn config delete proxy
yarn config delete https-proxy


  • 2021-04-25 09:53:18

    android debug速度特别慢有时候卡住

    一直提示定在 Starting LLDB server。可能的原因是 Android Studio编译速度太慢了,就会一直卡在Starting LLDB server。可以通过设置 Run/Debug Configurations ——> Debugger ——> Debug type 为 Java 跳过 C/C++的调试,起码实现对 Java 程序的调试

  • 2021-04-25 09:54:19

    sequelize 时区配置

    sequelize 默认情况下, 保存日期时会转换成 +00:00时区,