美文网首页
webstorm首次运行配置 mac

webstorm首次运行配置 mac

作者: Lynn火 | 来源:发表于2017-04-24 16:48 被阅读0次

首先安装homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

开始安装

安装homebrew.png

安装成功后

homebrew成功.png

安装nodejs

brew install nodejs
安装nodejs.png

安装cnpm

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

这里如果报错,就在命令前写上sudo 设定权限

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

安装webpack

cnpm install webpack -g
安装webpack.png

如果这里报错,同样在命令行之前写上sudo 设定权限

创建我们的工程

首先在桌面创建一个文件夹(first)
然后cd进这个文件夹:

cd /Users/liuking/Desktop/first

再执行

vue init webpack first
创建vue工程.png

再执行

cnpm install
创建vue工程.png

最后

cnpm run dev
大功告成.png

相关文章

网友评论

      本文标题:webstorm首次运行配置 mac

      本文链接:https://www.haomeiwen.com/subject/fujpzttx.html