Hero is coming back

风吹呀吹

风会指引你前进的方向

包管理 NPM && PIP

包管理工具

npm

查看已安装包

  • npm list --depth=0 当前项目安装
  • npm list --depth --global 全局安装
  • npm list -g 查看所有全局安装模块

查看当前镜像

  • npm get registry

镜像切换

安装

  • npm install express # 本地安装
  • npm install express -g # 全局安装

卸载安装包

  • npm uninstall express

更新安装包

  • npm update express

报错

  1. npm ERR! Unexpected end of JSON input while parsing near...的方法
  • npm cache clean --force 清楚缓存

代理设置

浏览器如果设置了代理npm也需要设置

pip

posted @ 2021-03-17 09:55  风吹呀吹  阅读(164)  评论(0编辑  收藏  举报