博客
关于我
npm配置安装最新淘宝镜像,旧镜像会errror
阅读量:793 次
发布时间:2023-02-17

本文共 270 字,大约阅读时间需要 1 分钟。

目录

前言

切换镜像默认情况下使用的镜像是国外镜像,速度一般比较慢。使用国内镜像速度快一些。

需要注意的是,切换镜像可能会导致错误:

https://registry.npmmirror.com/

需要设置成如下:

1. NPM淘宝镜像

  • npm config set registry https://registry.npmmirror.com/,切换国内镜像,使用淘宝镜像
  • npm config get registry,查看当前镜像使用的地址,返回成功则代表设置成功

代码执行情况:

C:\Users\86135>npm config

转载地址:http://uejfk.baihongyu.com/

你可能感兴趣的文章
NMF(非负矩阵分解)
查看>>
nmon_x86_64_centos7工具如何使用
查看>>
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>