[Vue3.0]如何创建2.0项目
Posted leoshi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Vue3.0]如何创建2.0项目相关的知识,希望对你有一定的参考价值。
$ vue init webpack myweb
Command vue init requires a global addon to be installed.
Please run npm install -g @vue/cli-init and try again.
$ npm install -g @vue/cli-init
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
@vue/cli-init@4.2.3
added 255 packages from 207 contributors in 14.777s╭────────────────────────────────────────────────────────────────╮
│ │
│ New minor version of npm available! 6.13.4 → 6.14.2 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.14.2 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
$ vue init webpack myweb
? downloading template
? Project name myweb
? Project description A Vue.js project
? Author LeoShi snoobaby@163.com
? Vue build standalone
? Install vue-router? Yes
? 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) npm
vue-cli · Generated "myweb".
Installing project dependencies ...
========================
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 browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated bfj-node4@5.3.1: Switch to the bfj
package for fixes and new features!
npm WARN deprecated core-js@2.6.11: 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.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
fsevents@1.2.11 install /Users/Leo/Dropbox/Tutorial/VUE/myweb/node_modules/fsevents
node-gyp rebuild
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
core-js@2.6.11 postinstall /Users/Leo/Dropbox/Tutorial/VUE/myweb/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/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
ejs@2.7.4 postinstall /Users/Leo/Dropbox/Tutorial/VUE/myweb/node_modules/ejs
node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
uglifyjs-webpack-plugin@0.4.6 postinstall /Users/Leo/Dropbox/Tutorial/VUE/myweb/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
added 1307 packages from 687 contributors in 37.999s
25 packages are looking for funding
run npm fund
for details
Project initialization finished!
========================
To get started:
cd myweb
npm run dev
Documentation can be found at https://vuejs-templates.github.io/webpack
以上是关于[Vue3.0]如何创建2.0项目的主要内容,如果未能解决你的问题,请参考以下文章
Jeecgboot-Vue3 v1.2.0 版本正式发布,企业级低代码平台