我是靠谱客的博主 平淡猫咪,这篇文章主要介绍Vue环境安装与配置,现在分享给大家,希望可以做个参考。

step1:  下载对应电脑的node 软件并安装

step2: 查看node 版本

step3: 安装cnpm

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

C:UsersaAppDataRoamingnpmcnpm -> C:UsersaAppDataRoamingnpmnode_modulescnpmbincnpm
+ cnpm@6.1.0
updated 12 packages in 1006.028s

step4: 通过 cnpm 安装vue-cli脚手架

cnpm install --global vue-cli

step5: 检测vue 版本

C:Usersa>vue

C:Usersa>"node"  "C:UsersaAppDataRoamingnpm\node_modulesvue-clibinvue"
Usage: vue <command> [options]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  init           generate a new project from a template
  list           list available official templates
  build          prototype a new project
  create         (for v3 warning only)
  help [cmd]     display help for [cmd]

step6:通过vue 创建项目

vue init webpack my-project

step7 : 访问项目

 

 

最后

以上就是平淡猫咪最近收集整理的关于Vue环境安装与配置的全部内容,更多相关Vue环境安装与配置内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部