🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

binary-china-mirror

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-china-mirror

Binary china mirror

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

binary-china-mirror

解决国内安装npm依赖时,需要安装国外binary库的问题,让你摆脱安装失败问题。

使用方式

# 自动在全局的.npmrc及.yarnrc生成对应的配置
npm i -g binary-china-mirror --registry=https://registry.npmmirror.com
# 查看npm配置
npm config list

为项目生成镜像配置文件

cd ~/my-project
# 命令会自动根据当前项目用yarn或者npm自动生成对应的rc文件
binary-china-mirror

在Docker中使用

RUN npm config set registry https://registry.npmmirror.com \
  && npm install --unsafe-perm -g binary-china-mirror


# 安装全部依赖
RUN npm ci

Mirror源

  • binary-mirror-config

目前包含的依赖源

Keywords

binary

FAQs

Package last updated on 18 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts