Comments (6)
I have the same problem. Did you find a solution?
from noduino.
Same issue here. No solution found yet.
from noduino.
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.
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.
@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.
@benwilhelm it really helps me!
from noduino.
Related Issues (20)
- XMLHTTPRequest: Access-Control-Allow-Origin
- Cannot connect to arduino HOT 4
- Cannot read property 'port' of null HOT 3
- duino submodule fails to retrieve files on update HOT 6
- [Error: Unable to connect] Opening \\.\/dev/: Unknown error code 3 HOT 11
- "found board at undefined" HOT 2
- wifi support? HOT 3
- Can't install noduino
- node srv.web.js is inappropriately referred to as app.j in public index.html on project site
- How do I access the examples? HOT 1
- "ls /dev | grep usb(ACM) " and "serialPort.list"
- npm install does not produce app.js HOT 1
- Liquid Crystal
- npm module HOT 1
- LED.on() action not turning on leds
- Uncaught ReferenceError: io is not defined:- Noduino.Socket.js:54 HOT 2
- Can´t connect to Duemilenove
- ESP8266 support
- Is this project still alive?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noduino.