npm is the package manager for JavaScript and the world’s largest software registry. Discover packages of reusable code — and assemble them in powerful new ways.
简单说NPM就是JavaScript的依赖库管理软件.
安装/更新 NPM 工具
npm install npm@latest -g
添加包 npm install --save react-native-modal-datetime-picker
全局安装 npm install react-native-modal-datetime-picker -g
添加开发依赖包(不会打包到最终App):
npm install --save-dev react-devtools
[NPM/Yarn Mirror repos(加速下载镜像速度)]
运行下列命令
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
网友评论