Giter VIP home page Giter VIP logo

vue2.0-vuex2.0-demo-jianshu's Issues

项目启动失败,注册可以插入数据,但是无法登录?

Error: Cannot find module 'mysql'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master\dbUtil\dbConnection.js:5:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master\dbUtil\userDbUtil.js:5:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)

mysql 模块安装成功后,即可运行:

E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master>npm run dev

[email protected] dev E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master
node build/dev-server.js

body-parser deprecated bodyParser: use individual json/urlencoded middlewares build\dev-server.js:21:9
body-parser deprecated undefined extended: provide extended option node_modules\body-parser\index.js:105:29
express-session deprecated undefined resave option; provide resave option build\dev-server.js:27:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option build\dev-server.js:27:9
Listening at http://localhost:8083

webpack: wait until bundle finished: /index.html
webpack built 3ffa28d23b0f96cb75f1 in 6917ms
Hash: 3ffa28d23b0f96cb75f1
Version: webpack 1.15.0
Time: 6917ms
Asset Size Chunks Chunk Names
static/img/jianshu_logo.1c609f8.jpg 27.4 kB [emitted]
static/img/download_img2.7a21a2a.png 458 kB [emitted]
static/img/hot-special.58f8968.png 15.7 kB [emitted]
app.js 3.41 MB 0 [emitted] app
index.html 393 bytes [emitted]
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.47 MB 0
webpack: Compiled successfully.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.