2018年10月5日

package.json 中 scripts

摘要: "name": "webpack-study1", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "webpack- 阅读全文

posted @ 2018-10-05 17:07 微先锋 阅读(2206) 评论(0) 推荐(0) 编辑

由于webpack-cli版本问题造成的错误

摘要: 运行 npm install webpack-cli --save-dev OK了 阅读全文

posted @ 2018-10-05 17:04 微先锋 阅读(7289) 评论(0) 推荐(0) 编辑

全局安装webpack-cli

摘要: npm install webpack-cli -g 阅读全文

posted @ 2018-10-05 16:57 微先锋 阅读(6196) 评论(0) 推荐(0) 编辑

创建vue.js项目

摘要: vue init webpack test cd test npm install 或者 cnpm install test npm run dev 阅读全文

posted @ 2018-10-05 16:09 微先锋 阅读(136) 评论(0) 推荐(0) 编辑

运行npm start vue.js项目 出现 npm ERR! missing script: start 错误

摘要: npm ERR! missing script: start 错误有可能缺少依赖包,运行nmp install安装依赖(一般都依赖很多包,过程有点慢),安装完后发现多一个 node_modules文件夹,该文件夹就是所有依赖包。 阅读全文

posted @ 2018-10-05 14:35 微先锋 阅读(19593) 评论(1) 推荐(0) 编辑

vscode 调试vue.js程序

摘要: npm install -g vue-cli //安装vue-clivue init webpack projectName //创建项目 1、Ctrl+~ 打开命令行输入界面2、输入npm start 成功出现8080端口的网址,修改端口在config/index.js文件3、Ctrl+c 停止 阅读全文

posted @ 2018-10-05 13:36 微先锋 阅读(835) 评论(0) 推荐(0) 编辑

dist文件夹、src文件夹、dest文件夹是什么意思?

摘要: dist文件夹是编译后或者压缩后的代码,终发布版本的代码src文件夹是源码文件dest文件夹为压缩包文件夹 阅读全文

posted @ 2018-10-05 10:27 微先锋 阅读(18614) 评论(0) 推荐(3) 编辑

导航