前端汇总

  • 设置npm的源 不使用cnpm命令,直接设置NPM为淘宝镜像
    npm config set registry https://registry.npm.taobao.org
    然后验证
    npm config get registry
  • 全局删除npm安装模块 http://www.imooc.com/wenda/detail/605712
  • 设置全局模块安装位置和缓存位置
      npm config set prefix "D:
odejs
ode_global"
      npm config set cache "D:
odejs
ode_cache"
  • 查看全局安装过的模块
    npm list --depth=0 -global
  • 报错:
Errors: 2 http://eslint.org/docs/rules/semi 1 http://eslint.org/docs/rules/eol-last 1 http:
原文地址:https://www.cnblogs.com/Baronboy/p/12927302.html