2022
我们一起努力

Mac下Npm安装的步骤 - 大数据

本篇内容主要讲解“Mac下Npm安装的步骤”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Mac下Npm安装的步骤”吧!

  • brew更新

    brew update
    brew doctor

     

  • 安装node

    brew link node
    brew uninstall node
    brew install node

     

  • homebrew 镜像慢
     

    #更换为清华源
    
    git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
    
    git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
    
    git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
    
    brew update
    
    
    
    
    #复原
    
    git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
    
    git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
    
    git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
    
    brew update

     

到此,相信大家对“Mac下Npm安装的步骤”有了更深的了解,不妨来实际操作一番吧!这里是云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

赞(0)
文章名称:《Mac下Npm安装的步骤 - 大数据》
文章链接:https://www.fzvps.com/41143.html
本站文章来源于互联网,如有侵权,请联系管理删除,本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
图片版权归属各自创作者所有,图片水印出于防止被无耻之徒盗取劳动成果的目的。

评论 抢沙发

评论前必须登录!