yeoman---mac安装

来源:互联网 发布:中国作家 知乎 编辑:程序博客网 时间:2024/05/16 23:50

yeoman是前端脚手架,其官方网址:http://yeoman.io/

如何安装yeoman,在安装yeoman之前需要安装nodejs环境,可根据node官网下载安装nodejs环境

安装完nodejs后,使用npm全局安装yeoman:

安装命令:npm install -g yo

yo是yeoman在npm中的安装名称,如果在安装过程中出现:

tunneling socket could not be established, cause=connect ETIMEDOUT 8.20.189.133:8081

这类错误,使用命令:

npm config rm proxy 和 npm config rm https-proxy删除代理来安装yeoman


检查yeoman是否安装完成,使用:yo -v 控制台正确输出当前版本

0 0
原创粉丝点击