Vuejs install on Windows - Go语言中文社区

Vuejs install on Windows


Vuejs install on Windows

Install

If you want to change the default path when running Node.js command prompt, edit nodejsnodevars.bat file at last line, change %HOMEDRIVE%%HOMEPATH% to your path

  1. Install Node Js
    Download and install nodejs package for windows
    https://nodejs.org/en/download/

  2. Install Vue CLI
    Uninstall old version and install new version

npm uninstall vue-cli –g to uninstall
npm install -g @vue/cli

Use vue --version to check if installation is success
这里写图片描述
3. Install Prototyping

npm install –g @vue/cli-service-global

Use vue serve to run App.vue or user vue serve MyApp.vue to run MyApp

Create

Use Command

vue create hello-world -d

After creation, you will a new folder named hello-world under your current path like this struture
这里写图片描述

Use UI

Run vue ui to run a local project manager web, you can manually create a new project by follow each steps
这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

Now, you can find a new vue project folder under current path.

Build

Use UI

The local project manager offer us a convenience way to build and with UI analysis
这里写图片描述

Use Command

cd hello-world
npm run serve

这里写图片描述

Visit http://localhost:8080 in broswer

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/king7950/article/details/81201707
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-06 23:21:17
  • 阅读 ( 997 )
  • 分类:前端

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢