Git Product home page Git Product logo

demo's People

Contributors

jdk137 avatar perterpon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stevenjack666

demo's Issues

demo无法运行

执行步骤

  1. 执行npm i
  2. 执行 node app.js 时候报错
/Users/hezhoushuai/Downloads/demo-master/node_modules/connect/lib/proto.js:70
if ('function' == typeof fn.handle) {
^

TypeError: Cannot read property 'handle' of undefined
at Function.app.use (/Users/lbp/Downloads/demo-master/node_modules/connect/lib/proto.js:70:30)
at Object. (/Users/lbp/Downloads/demo-master/app.js:6:4)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:160:9)

解决办法

经调试为/lib/cube_middleware.js导出的scriptProcessor变量为undefined。将cube.init更改为cube.middleware即可正常执行。

demo 运行不了

执行 node app.js 时候报错
/Users/lbp/Downloads/demo-master/node_modules/connect/lib/proto.js:70
if ('function' == typeof fn.handle) {
^

TypeError: Cannot read property 'handle' of undefined
at Function.app.use (/Users/lbp/Downloads/demo-master/node_modules/connect/lib/proto.js:70:30)
at Object. (/Users/lbp/Downloads/demo-master/app.js:6:4)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:160:9)

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.