title: npm笔记
tags:
- npm
npm笔记
引入本地路径
"react-navigation-tabs": "file:./my_modules/react-navigation-tabs",
设置npm淘宝加速
#查看当前的登录源
npm config get registry
#设置淘宝镜像源(设置npm国内加速)
npm config set registry http://registry.npm.taobao.org/
#切换到npmjs源
npm config set registry=http://registry.npmjs.org
设置yarn
yarn config get registry
yarn config set registry http://registry.npm.taobao.org/
yarn config set registry https://registry.yarnpkg.com