GithubHelp home page GithubHelp logo

Comments (6)

benwilhelm avatar benwilhelm commented on June 2, 2024

I have the same problem. Did you find a solution?

from noduino.

xixao avatar xixao commented on June 2, 2024

Same issue here. No solution found yet.

from noduino.

throrin19 avatar throrin19 commented on June 2, 2024

same here. I have an idea of the bug. It's the version of the kickstart package, and all others packages. You should set the current version works with your project, no * because if external modules have an update with deprecated or removed functions, your work crash.

from noduino.

bobdauth avatar bobdauth commented on June 2, 2024

Same issue here. Anyone have a solution?
node srv.web.js
Option origin is not valid. Please refer to the README.

/Users/joeblow/nodejs/noduino/node_modules/kickstart/lib/kickstart.js:55
var router = express.createServer(connect.vhost(kickstart.conf.name, kicksta
^
TypeError: Object function createServer() {
function app(req, res, next){ app.handle(req, res, next); }
merge(app, proto);
merge(app, EventEmitter.prototype);
app.route = '/';
app.stack = [];
return app;
} has no method 'vhost'

from noduino.

benwilhelm avatar benwilhelm commented on June 2, 2024

@throrin19, you're spot on. It's a problem with the dependencies defined in the NPM Kickstart module. Kickstart hasn't been updated in over two years and it's requiring the newest versions of Express and Connect, which have changed their APIs. To resolve it, you'll need to manually change the package.json file within the Kickstart module to require appropriate versions of Express and Connect.

Open up node_modules/kickstart/package.json and change the following lines (roughly 38/39)

"connect": ">=1.8.4",
"express": ">=2.5.11",

to

"connect": "1.8.4",
"express": "2.5.11",

Then you need to remove and reinstall Kickstart's dependencies. Open your terminal and CD to your noduino directory, then...

$ cd node_modules/kickstart
$ rm -rf node_modules
$ npm install
$ cd ../..
$ node srv.web.js
//.. should start server on port 8080

I'll be submitting a pull request to the Kickstart module to correct the issue. Good Luck!

from noduino.

wesleysui avatar wesleysui commented on June 2, 2024

@benwilhelm it really helps me!

from noduino.

Related Issues (20)

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.