guopengfa
发布于 2022-09-03 / 2482 阅读 / 0 评论 / 0 点赞

Some npm note

start

we know the origin npm resource are base in github, But we china area can not stable connect with github. But the china some big business will mirror the resource to china site. so we can use it.

how to use it

the npm has a composement collect then: nrm

>>npm install npm
>>nrm ls

  npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
  cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/
>>nrm use taobao  # You can chooise one what you want to change to from list.

good luck,
Thanks.


评论