npm创建Vue工程【element UI】

步骤

# 初始化一个名为 hello-vue 的Vue工程
vue init webpack hello-vue# 进入 hello-vue 工程
cd hello-vue# 安装vue-router
npm install vue-router --sava-dev# 安装element-ui
npm i element-ui -S# 安装Sass
cnpm install sass-loader node-sass --save-dev# 安装依赖
npm install# 修复命令
npm audit fix# 运行
npm run dev

CMD界面

Microsoft Windows [版本 10.0.18363.1440]
(c) 2019 Microsoft Corporation。保留所有权利。#####################################
# 初始化一个名为 hello-vue 的Vue工程    #
#####################################
C:\Users\25716\Documents\MyVue>vue init webpack hello-vue'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
? Project name hello-vue
? Project description A Vue.js project
? Author Mashiro
? Vue build standalone
? Install vue-router? No
? Use ESLint to lint your code? No
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) novue-cli · Generated "hello-vue".# Project initialization finished!
# ========================To get started:cd hello-vuenpm install (or if using yarn: yarn)npm run devDocumentation can be found at https://vuejs-templates.github.io/webpack#####################################
# 进入 hello-vue 工程                #
#####################################
C:\Users\25716\Documents\MyVue>cd hello-vue#####################################
# 安装vue-router                     #
#####################################
C:\Users\25716\Documents\MyVue\hello-vue>npm install vue-router --sava-dev
npm notice created a lockfile as package-lock.json. You should commit this file.
+ vue-router@3.5.1
added 1 package from 1 contributor and audited 1 package in 3.344s
found 0 vulnerabilities#####################################
# 安装element-ui                     #
#####################################
C:\Users\25716\Documents\MyVue\hello-vue>npm i element-ui -S
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.> core-js@2.6.12 postinstall C:\Users\25716\Documents\MyVue\hello-vue\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirockAlso, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)npm WARN element-ui@2.15.1 requires a peer of vue@^2.5.17 but none is installed. You must install peer dependencies yourself.+ element-ui@2.15.1
added 10 packages from 9 contributors and audited 12 packages in 18.833s
found 0 vulnerabilities#####################################
# 安装依赖                            #
#####################################
C:\Users\25716\Documents\MyVue\hello-vue>npm install
npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
npm WARN deprecated html-webpack-plugin@2.30.1: out of support
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated> ejs@2.7.4 postinstall C:\Users\25716\Documents\MyVue\hello-vue\node_modules\ejs
> node ./postinstall.jsThank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)> uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\25716\Documents\MyVue\hello-vue\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.jsnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.added 1269 packages from 675 contributors and audited 1288 packages in 271.193s46 packages are looking for fundingrun `npm fund` for detailsfound 17 vulnerabilities (3 low, 8 moderate, 6 high)run `npm audit fix` to fix them, or `npm audit` for details√ Installed 2 packages
√ Linked 178 latest versions
[1/1] scripts.install node-sass@* run "node scripts/install.js", root: "C:\\Users\\25716\\Documents\\MyVue\\hello-vue\\node_modules\\_node-sass@5.0.0@node-sass"
Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v5.0.0/win32-x64-83_binding.node
Download complete
Binary saved to C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_node-sass@5.0.0@node-sass\vendor\win32-x64-83\binding.node
Caching binary to C:\Users\25716\.npminstall_tarball\node-sass\5.0.0\win32-x64-83_binding.node
[1/1] scripts.install node-sass@* finished in 3s
[1/1] scripts.postinstall node-sass@* run "node scripts/build.js", root: "C:\\Users\\25716\\Documents\\MyVue\\hello-vue\\node_modules\\_node-sass@5.0.0@node-sass"
Binary found at C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_node-sass@5.0.0@node-sass\vendor\win32-x64-83\binding.node
Testing binary
Binary is fine
[1/1] scripts.postinstall node-sass@* finished in 620ms
√ Run 1 scripts
peerDependencies WARNING sass-loader@* requires a peer of fibers@>= 3.1.0 but none was installed
peerDependencies WARNING sass-loader@* requires a peer of sass@^1.3.0 but none was installed
peerDependencies WARNING sass-loader@* requires a peer of webpack@^5.0.0 but webpack@3.12.0 was installed
deprecate node-sass@5.0.0 › request@^2.88.0 request has been deprecated, see https://github.com/request/request/issues/3142
deprecate node-sass@5.0.0 › request@2.88.2 › har-validator@~5.1.3 this library is no longer supported
√ All packages installed (195 packages installed from npm registry, used 20s(network 16s), speed 211.79kB/s, json 181(460.59kB), tarball 2.94MB)#####################################
# 修复命令                            #
#####################################
C:\Users\25716\Documents\MyVue\hello-vue>npm audit fix
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\uuid.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_uuid@3.4.0@uuid
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\uuid.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_uuid@3.4.0@uuid
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\uuid as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_uuid@3.4.0@uuid
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\strip-indent.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_strip-indent@1.0.1@strip-indent
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\strip-indent.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_strip-indent@1.0.1@strip-indent
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\strip-indent as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_strip-indent@1.0.1@strip-indent
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@7.3.4@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@7.3.4@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@7.3.4@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@5.7.1@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@5.7.1@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\semver as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_semver@5.7.1@semver
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\rimraf.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_rimraf@3.0.2@rimraf
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\rimraf.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_rimraf@3.0.2@rimraf
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\rimraf as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_rimraf@3.0.2@rimraf
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@1.0.4@mkdirp
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@1.0.4@mkdirp
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@1.0.4@mkdirp
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp.ps1 as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@0.5.5@mkdirp
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp.cmd as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@0.5.5@mkdirp
npm WARN rm not removing C:\Users\25716\Documents\MyVue\hello-vue\node_modules\.bin\mkdirp as it wasn't installed by C:\Users\25716\Documents\MyVue\hello-vue\node_modules\_mkdirp@0.5.5@mkdirp
npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})added 1 package from 4 contributors, removed 908 packages and updated 1 package in 10.289s46 packages are looking for fundingrun `npm fund` for detailsfixed 6 of 17 vulnerabilities in 1288 scanned packages2 vulnerabilities required manual review and could not be updated6 package updates for 9 vulnerabilities involved breaking changes(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)C:\Users\25716\Documents\MyVue\hello-vue>npm run dev

npm创建Vue工程【element UI】相关推荐

  1. 【Vue】 element ui 引入第三方图标

    最近一个项目用到 vue 和 element ui开发前端.使用element ui自带的icon太少,所以引入第三方的.截止目前为止国内外网络上的相关教程我搜索到没超过5篇,而且都不详细,即使全部阅 ...

  2. Vue安装element ui踩坑

    在vue安装element ui 的过程中报了许多错误,慢慢踩坑,希望能帮到各位 1.  输入  vue add element    输入 y y zh-CN 如果报错  ERROR  comman ...

  3. 使用vue-cli创建vue工程

    在Windows环境下,打开命令行窗口,跳转至想创建工程的路径. 如:D:\MyWork\22_Github\rexel-cn\rexel-jarvis 创建vue工程,命令:vue create r ...

  4. 使用npm创建vue项目

    大家好,我是龙骑士,今天给大家介绍使用npm创建vue项目 在你想要创建项目的文件夹下打开cmd,在命令行窗口输入vue create projectname 作为学习记录,这里全部选择 Vue CL ...

  5. 关于vue.js element ui 表单验证 this.$refs[formName].validate()的问题

      方法使用前需了解: 来自"和"小编的小提示: 首先打印一下this.$refs[formName],检查是否拿到了正确的需要验证的form. 其次在拿到了正确的form后,检查 ...

  6. Node mysql mvc vue_net MVC +Vue.js+Element UI 笔记

    最近项目需求,要在MVC里用Vue 与 Element UI,故而做个笔记来记录一些遇到的问题和处理思路 (方式比较麻瓜,如果不是临时用的话,建议还是学一下Vue-cli,新项目还是老老实实前后端分离 ...

  7. Vue+JS+Element UI实战(电商项目1)

    目录 1.电商业务概述 2.电商后台管理系统的功能 ​3.项目初始化步骤 4.后台项目的环境安装配置 4.1. API V1 接口说明 4.2. 支持的请求方法 4.3. 通用返回状态说明 5.测试后 ...

  8. 在vue中element ui 结合frappe-gantt实现一个简单的甘特图功能

    在vue中创建甘特图步骤请参考: https://editor.csdn.net/md/?articleId=130145782 2. 结合element ui 实现甘特图功能 实现效果: 2.1 下 ...

  9. vue开源Element UI表单设计及代码生成器

    1 可视化设计器 设计器基于Element UI ,可通过点击或拖拽的方式设计基本表单, 设计器生成的代码可直接运行在基于 Element 的 vue 项目中. github仓库   https:// ...

最新文章

  1. C++ 标准库中的异常
  2. 微信服务号 微信支付开发
  3. C/C++程序语言概念
  4. 第二十二期:New一个对象的时候发生了什么?
  5. 暴露的全局方法_史上最便捷搭建 ZooKeeper 服务器的方法
  6. shell变量的使用
  7. 如何JQ将下拉列表的值传送给php,JQuery设置获取下拉菜单某个选项的值(比较全)...
  8. Python-异常处理
  9. VS2005发送电子邮件(转)
  10. java 通过System.getProperties()获取系统参数
  11. 关于前端程序员写前端用什么框架更好?
  12. Cocos2D:塔防游戏制作之旅(九)
  13. QTTabBar+Office Tab+Quicker 助力高效使用Windows办公
  14. 如何让计算机自动锁屏,怎样设置电脑自动锁屏
  15. 亚马逊商品详情API接口(item_get-获得AMAZON商品详情接口),亚马逊API接口
  16. pycharm创建django项目时出错
  17. excel表格打印每页都有表头_Excel怎么能让每一页都打印上相同的顶端和底端标题?...
  18. 用程序实现基本计算器功能
  19. OpenCL入门实践
  20. 拼图软件那个好用?好用的拼图软件分享

热门文章

  1. 【Apache运维基础(4)】Apache的Rewrite攻略(1)
  2. 计算机系的同学应该有更高的雄心壮志
  3. 沧小海深入剖析xilinx的GTP/GTX核,掌握高速串行收发机制——第六章 接收端结构及功能说明
  4. 图灵mysql_图灵学院JAVA架构师-VIP-MySQL底层实现之B+树
  5. Photoshop(PS)2021安装教程【64位】
  6. 四川师范大学计算机系黄宇,黄宇-经济信息工程学院
  7. 2021-11-03 - 英文/英语简写 - 收集
  8. 【物联家居】第四章:传输协议--mqtt配置与测试
  9. composer php中如何执行,composer怎么运行
  10. 报错解决——Failed to load resource: the server responded with a status of 404 (Not Found)