background picture of the home page

It`s never to late。

本人很懒

npm 国内源和官方源地址

本文介绍 NPM 源(registry)的配置方式,列出两个常用源地址:国内源为 https://registry.npmmirror.com,官方源为 https://registry.npmjs.org。两者均以 --registry 参数形式提供,可在执行 npm 命令时附加,用于指定安装依赖时所使用的仓库来源。其中国内源指向 npmmirror 镜像站,便于国内环境使用;官方源指向 npm 官方仓库。读者可按需附加相应参数,实现源切换并完成依赖安装。

thumbnail of the cover of the post