Mac 配置vue环境和创建项目

您所在的位置:网站首页 mac配置vue环境 Mac 配置vue环境和创建项目

Mac 配置vue环境和创建项目

2024-07-16 08:42| 来源: 网络整理| 查看: 265

安装homebrew

终端输入: ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

如有报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused 替换brew.git: cd “$(brew --repo)” git remote set-url origin https://mirrors.ustc.edu.cn/brew.git 替换homebrew-core.git: cd “$(brew --repo)/Library/Taps/homebrew/homebrew-core” git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

安装nodejs brew install nodejs 获取nodejs安装目录访问权限 sudo chmod -R 777 /usr/local/lib/node_modules/ 查找node路径:which node

安装npm镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org

安装webpack cnpm install webpack -g

安装vue脚手架 cnpm install vue-cli -g



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3