zoukankan      html  css  js  c++  java
  • 前端VUE环境构建

    • https://nodejs.org/en/ 安装node 

      

    • 安装淘宝npm镜像

    D:>cd cnpm

    D:cnpm>npm install -g cnpm --registry=https://registry.npm.taobao.org
    C:UserslbmAppDataRoaming pmcnpm -> C:UserslbmAppDataRoaming pm ode_modulescnpmincnpm
    + cnpm@6.0.0
    added 683 packages from 900 contributors in 33.678s

    D:cnpm>cnpm install --global vue-cli
    Downloading vue-cli to C:UserslbmAppDataRoaming pm ode_modulesvue-cli_tmp
    Copying C:UserslbmAppDataRoaming pm ode_modulesvue-cli_tmp\_vue-cli@2.9.6@vue-cli to C:UserslbmAppDataRoaming pm ode_modulesvue-cli
    Installing vue-cli's dependencies to C:UserslbmAppDataRoaming pm ode_modulesvue-cli/node_modules
    [1/20] commander@^2.9.0 installed at node_modules\_commander@2.20.0@commander
    [2/20] multimatch@^2.1.0 installed at node_modules\_multimatch@2.1.0@multimatch
    [3/20] minimatch@^3.0.0 installed at node_modules\_minimatch@3.0.4@minimatch
    [4/20] ora@^1.3.0 installed at node_modules\_ora@1.4.0@ora
    [5/20] rimraf@^2.5.0 existed at node_modules\_rimraf@2.6.3@rimraf
    [6/20] chalk@^2.1.0 installed at node_modules\_chalk@2.4.2@chalk
    [7/20] consolidate@^0.14.0 installed at node_modules\_consolidate@0.14.5@consolidate
    [8/20] semver@^5.1.0 installed at node_modules\_semver@5.7.0@semver
    [9/20] uid@0.0.2 installed at node_modules\_uid@0.0.2@uid
    [10/20] tildify@^1.2.0 installed at node_modules\_tildify@1.2.0@tildify
    [11/20] read-metadata@^1.0.0 installed at node_modules\_read-metadata@1.0.0@read-metadata
    [12/20] user-home@^2.0.0 installed at node_modules\_user-home@2.0.0@user-home
    [13/20] coffee-script@1.12.7 existed at node_modules\_coffee-script@1.12.7@coffee-script
    [14/20] validate-npm-package-name@^3.0.0 installed at node_modules\_validate-npm-package-name@3.0.0@validate-npm-package-name
    [15/20] metalsmith@^2.1.0 installed at node_modules\_metalsmith@2.3.0@metalsmith
    [16/20] handlebars@^4.0.5 installed at node_modules\_handlebars@4.1.2@handlebars
    [17/20] download-git-repo@^1.0.1 installed at node_modules\_download-git-repo@1.1.0@download-git-repo
    [18/20] request@^2.67.0 installed at node_modules\_request@2.88.0@request
    [19/20] async@^2.4.0 installed at node_modules\_async@2.6.2@async
    [20/20] inquirer@^6.0.0 installed at node_modules\_inquirer@6.3.1@inquirer
    deprecate metalsmith@2.3.0 › gray-matter@2.1.1 › coffee-script@^1.12.4 CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
    Recently updated (since 2019-05-01): 2 packages (detail see file C:UserslbmAppDataRoaming pm ode_modulesvue-cli ode_modules.recently_updates.txt)
      Today:
        → metalsmith@2.3.0 › rimraf@2.6.3 › glob@^7.1.3(7.1.4) (08:45:01)
      2019-05-07
        → handlebars@4.1.2 › uglify-js@^3.1.4(3.5.11) (03:37:56)
    All packages installed (238 packages installed from npm registry, used 12s(network 12s), speed 444.88kB/s, json 223(409.21kB), tarball 4.75MB)
    [vue-cli@2.9.6] link C:UserslbmAppDataRoaming pmvue@ -> C:UserslbmAppDataRoaming pm ode_modulesvue-cliinvue
    [vue-cli@2.9.6] link C:UserslbmAppDataRoaming pmvue-init@ -> C:UserslbmAppDataRoaming pm ode_modulesvue-cliinvue-init
    [vue-cli@2.9.6] link C:UserslbmAppDataRoaming pmvue-list@ -> C:UserslbmAppDataRoaming pm ode_modulesvue-cliinvue-list

    • 安装vue-cli脚手架
       
    • 新建一个项目
    • 在项目里面安装依赖
  • 相关阅读:
    移动开发 Native APP、Hybrid APP和Web APP介绍
    urllib与urllib2的学习总结(python2.7.X)
    fiddler及postman讲解
    接口测试基础
    UiAutomator2.0 和1.x 的区别
    adb shell am instrument 命令详解
    GT问题记录
    HDU 2492 Ping pong (树状数组)
    CF 567C Geometric Progression
    CF 545E Paths and Trees
  • 原文地址:https://www.cnblogs.com/liubeimeng/p/10831834.html
Copyright © 2011-2022 走看看