美文网首页
npm config set registry无法修改镜像

npm config set registry无法修改镜像

作者: who_are_you_ | 来源:发表于2024-03-07 11:17 被阅读0次
    1、与打开的终端文件夹中的.npmrc (最高权限镜像)有关,可以先注释掉;
    2、window系统可以右键启动管理员权限
    3、mac 可以使用命令前加 sudo:

    清华镜像命令

    sudo npm config set registry https://registry.npmmirror.com
    

    设置完成查看npm配置

    npm config get
    

    查看淘宝镜像源

    npm config get registry
    

    相关文章

      网友评论

          本文标题:npm config set registry无法修改镜像

          本文链接:https://www.haomeiwen.com/subject/hnvszdtx.html