Open dsm-kbl opened 9 years ago
I just tried it and it worked fine for me. I have noticed two facts about npm that may help you. Sometimes there are temporary interruptions in the npm service, and sometimes just running npm install
a second time will do the trick. Secondly, even though it shouldn't be necessary, I've had npm fail on me if I didn't run it with root privileges, so you might try sudo npm install
as well. Let me know if either of these suggestions help....
Hi Ethan, I just run npm install again and somehow it installed express-session. I got some warnings and now somehow i get a new error in this line.
app.use(vhost('api.*', rest.restler(apiOptions))); TypeError: Object #
Any ideas?
I'm sorry its taken me so long to respond.... It looks like this is an obsolete use of the rest package...did you find that in the book or the repository?
I am following the book and I get this error when I try to start my server. I tried to install the module express-session but doesn't work. It says
throw err; Cannot find module 'express-session'
on this line - app.use(require('express-session')({ store : sessionStore }));
How can i solve this problem?