首页 > 系统服务 > 详细

Mac brew安装node环境

时间:2021-06-07 16:15:34      阅读:31      评论:0      收藏:0      [点我收藏+]

安装

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

Mac brew安装node环境

原文:https://www.cnblogs.com/jiqing9006/p/14858270.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!