前端常见bug与解决方案
1.node版本问题
npm install 安装依赖 99.99%
对应的node版本的支持
工具 nvm多个不同的node版本共存
常用的命令
nvm list 遍历本机上所有node安装的node版本
nvm install (@版本号) 安装指定的版本号
mvn use (@版本号) 切换指定的版本号
2.网络代理
npm install
设置淘宝镜像 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org(错误 禁止使用)
停止维护
cnpm install
node切换
npm config set registry http://registry.npmmirror.com
3.其他..
renren-ui