vueThink安装

1.下载git项目:git clone https://github.com/honraytech/VueThink.git
2.解压,并配置服务器地址到项目地址(即php目录的上一层)
3.导入sql,在sql中执行/php/install.sql,并在/php/config/database.php配置数据库参数
4.frontEnd/src/main.js修改:
axios.defaults.baseURL = ‘http://vt.com/php/index.php
window.HOST = ‘http://vt.com/php/index.php

5.访问:http://服务器地址:端口/php/(可成功显示:vuethink接口)
6.frontEnd命令行下运行命令(需要安装npm):npm run dev

7.如果第六步失败,显示错误: npm run dev Cannot find module ‘semver’,界面显示not /get进行该步骤:
安装淘宝cnpm: npm install -g cnpm –registry=https://registry.npm.taobao.org
然后使用cnpm命令:cnpm install node-sass
再次执行:npm run dev

8.出现下列错误:
vueThink Expected linebreaks to be ‘CRLF’ but found ‘LF’
则:/frontEnd/.eslintrc.json的linebreak-style直接改为0
再次执行:npm run dev成功

猜你喜欢

转载自blog.csdn.net/yu_duan_hun/article/details/81003231