竞价网站移动端,深圳龙华区属于哪个区,响应式网页怎么设计,宣传册前提需安装node.js和Vue CLI
node.js:https://nodejs.org/zh-cn
Vue CLI#xff1a;
npm install -g vue/cli
如何创建一个vue2项目
#xff08;1#xff09; 使用cmd终端直接创建 进入到vue项目所创建的目录里#xff08;我是直接创建在桌面上#xff09; 选择vue2 …前提需安装node.js和Vue CLI
node.js:https://nodejs.org/zh-cn
Vue CLI
npm install -g vue/cli
如何创建一个vue2项目
1 使用cmd终端直接创建 进入到vue项目所创建的目录里我是直接创建在桌面上 选择vue2
创建项目 完成发现npm run serve运行后会报错
出现Conflict: Multiple assets emit different content to the same filename index.html 此时此刻不要慌
第一步把index.html重命名为index.ejs
第二部在node_nodules/webpack/bin/webpack.js中加入 html: { template: ./src/index.ejs }