Code Monkey home page Code Monkey logo

mac-update-node.'s Introduction

更新Mac下node环境和npm

1⃣️ 先查看本机node.js版本:

1 node -v

2⃣️ 清除node.js的cache:

1 sudo npm cache clean -f

3⃣️ 安装 n 工具,这个工具专门用来管理node.js版本的。

1 sudo npm install -g n

4⃣️ 安装最新版本的node.js

sudo n stable

5⃣️ 再次查看node版本

1 node -v

6⃣️ 更新npm到最新版本

1 sudo npm install npm@latest -g

7⃣️ 验证

1 node -v
2 npm -v

mac-update-node.'s People

Contributors

h-lbread avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.