1.. vue init webpack
根据提示选择,,
1.1 > Runtime + Compiler: recommended for most users 我选的此项,使用大多用户
>Runtime-only: about 6KB lighter min+gzip, 模板只能在vue文件夹中使用, 其他地方 还需要 单独引入
but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere
1.2 Should we run `npm install` for you after the project has been created? (recommended) (Use arrow keys)
最后选项完成后,,提示选择 npm install 自动开始安装上面选项及依赖, ( 时间 看网络状况, 我用时约5分钟 )
下面是 npm 安装完上面选项后的环境提示 : ( 没有报错, 就先进行, 留做以后排错 )
Should we run `npm install` for you after the project has been created? npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated [email protected]: Switch to the `bfj` package for fixes and new features! npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. > [email protected] postinstall
m:\lhhResumer\myResumer\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 optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING
OPTIONAL DEPENDENCY:
Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 1201 packages from 674 contributors and audited 11931 packages in 340.578s found 7 vulnerabilities (6 moderate, 1 high) run `npm audit fix` to fix them,
or `npm audit` for details Running eslint --fix to comply with chosen preset rules...
# ======================== > [email protected] lint m:\lhhResumer\myResumer > eslint --ext .js,.vue src "--fix" # Project initialization finished! # ====== To get started: npm run dev Documentation can be found at https://vuejs-templates.github.io/webpack(recommended) (Use arrow keys)
2.. npm install
安装package.json