Mac brew安裝node環境


安裝

brew install nodejs
% brew install nodejs
==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/libuv
######################################################################## 100.0%
==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/node-
######################################################################## 100.0%
==> Installing dependencies for node: libuv
==> Installing node dependency: libuv
==> Pouring libuv-1.41.0.arm64_big_sur.bottle.tar.gz
🍺  /opt/homebrew/Cellar/libuv/1.41.0: 49 files, 3.2MB
==> Installing node
==> Pouring node-16.3.0.arm64_big_sur.bottle.tar.gz
🍺  /opt/homebrew/Cellar/node/16.3.0: 2,777 files, 48MB

查看版本

% node -v
v16.3.0
% npm -v
7.15.1

安裝cnpm

% npm install -g cnpm --registry=https://registry.npm.taobao.org 

安裝vue

% npm install vue

安裝vue-cli

% npm install -g @vue/cli


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM