Giter Club home page Giter Club logo

Comments (27)

smurthas avatar smurthas commented on August 22, 2024

It sounds like you don't have the connect module properly installed. Can you paste the results of npm ls installed here?

from locker.

seancron avatar seancron commented on August 22, 2024

I get this same issue too. Here's the results of npm ls installed: http://pastebin.com/uY4Bttab

from locker.

seancron avatar seancron commented on August 22, 2024

Apparently the problem is incompatible versions of connect and express. I solved it by using node 0.4.1, [email protected], and [email protected]

from locker.

temas avatar temas commented on August 22, 2024

Did you do a npm install in the main directory? It's looking for the connect package that should have been pulled down as a dependency of the express package.

--temas

On Mar 18, 2011, at 11:56 PM, magg wrote:

i can't seem to get locker running i keep getting this error

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'connect/middleware/router'
at Function._resolveFilename (module.js:320:11)
at Function._load (module.js:266:25)
at require (module.js:348:19)
at Object. (/usr/local/lib/node/.npm/express/1.0.0/package/lib/express/server.js:17:14)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:348:19)
at Object. (/usr/local/lib/node/.npm/express/1.0.0/package/lib/express/index.js:28:31)

I'm using Ubuntu 10.10

Please help!

Reply to this email directly or view it on GitHub:
https://github.com/quartzjer/Locker/issues/3

from locker.

seancron avatar seancron commented on August 22, 2024

Yeah I did an npm install in the main directory. Completely clean version of node and npm as well (used nvm to install node 0.4.0). I think the problem is not all the dependencies are compatible with each other.

Edit: Just tested under node 0.4.0 again. If [email protected] and [email protected] it works.

from locker.

magg avatar magg commented on August 22, 2024

Here's the output of "npm ls installed" and btw I'm using node 0.4.4-pre from the ubuntu ppa

http://pastebin.com/qqcmjTkf

So I need [email protected] and [email protected] to make it work?? I will try it now, thanks!

from locker.

magg avatar magg commented on August 22, 2024

mmm I can't uninstall the versions locker installs of express and connect, but I deactivated them and activated the [email protected] and [email protected] versions

And Locker works!! thanks again mates

from locker.

temas avatar temas commented on August 22, 2024

Glad you got it going. We'll be working to make the install/startup process easier real soon.

--temas

On Mar 20, 2011, at 12:49 AM, magg [email protected] wrote:

mmm I can't uninstall the version locker install of express and connect, but I deactivated them and activated the [email protected] and [email protected] versions

And Locker works!! thanks again mates

Reply to this email directly or view it on GitHub:
https://github.com/quartzjer/Locker/issues/3#comment_894613

from locker.

sambirk avatar sambirk commented on August 22, 2024

I have installed and activated [email protected] and [email protected] on [email protected] with [email protected] and no luck getting Locker running using Ubuntu Server 10.10.

Terminal dump here https://gist.github.com/881588

Going to install [email protected] via nvm as suggested by seacron now

from locker.

temas avatar temas commented on August 22, 2024

Can you try clearing out the older versions of connect? Really odd issue, because it all looks like it should be fine.

from locker.

sambirk avatar sambirk commented on August 22, 2024

nope that didn't solve it

from locker.

temas avatar temas commented on August 22, 2024

Did you try the deactivate -> reactivate process that magg did?

from locker.

sambirk avatar sambirk commented on August 22, 2024

Yes I did but that didn't help either.
I'm using virtualbox on a windows 7 host so I'm creating a new vm as I type and starting from scratch to make sure nothing borked somehow.

from locker.

temas avatar temas commented on August 22, 2024

How peculiar, let me know how that goes and what the VM setup is. I'll recreate it locally if there's still an issue.

from locker.

temas avatar temas commented on August 22, 2024

Any luck samBiotic?

from locker.

ctide avatar ctide commented on August 22, 2024

Same for me:

https://gist.github.com/90f5c26367e699ce76f0

Fresh node install, OSX 10.6.6.

from locker.

ctide avatar ctide commented on August 22, 2024

Also worth noting that I installed the specific versions mentioned here ([email protected] and [email protected]) and had the same issue.

from locker.

sambirk avatar sambirk commented on August 22, 2024

temas,

new ubuntu server 32bit 10.10 virtualbox install with openssh server the only thing install from installation media.

then performed the following in an attempt to get a working Locker.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
git fetch --all
git tag
git checkout v0.4.3
./configure
make
make install
node -v
cd ..
git clone git://github.com/quartzjer/Locker.git
cd Locker
curl http://npmjs.org/install.sh | npm_install=rc sh
npm -v
npm ls #all modules unmet dependency
npm install #sqlite1.0.3 fails to build
npm ls #sqlite unmet dependancy
sudo apt-get install libsqlite-dev
npm ls #sqlite unmet dependency
npm install #sqlite1.0.3 fails to build again
curl http://npmjs.org/install.sh | sh #downgrade npm to latest stable 0.3.17
npm install #sqlite1.0.3 fails to build again

final npm install terminal dump is here: https://gist.github.com/885738

I don't think this is an npm issue as it happened with 1rc and 0.3.17

filed an issue on node-sqlite repository: https://github.com/orlandov/node-sqlite/issues#issue/27

I could just have missing dependencies that I could install with apt?

from locker.

sambirk avatar sambirk commented on August 22, 2024

Ok I've fixed the sqlite dependency (it needed libsqlite3-dev)

Here's a full Ubuntu 10.10 install guide using nvm as it made life easier 3rd time around!

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vim git-core libssl-dev curl build-essential libsqlite3-dev
git clone git://github.com/creationix/nvm.git ~/.nvm
. ~/.nvm/nvm.sh
vim .bashrc #add the line [. ~/.nvm/nvm.sh] without brackets
nvm sync
nvm install stable
nvm use stable
node -v #v0.4.3
npm -v #0.3.17
nvm alias default v0.4.3
git clone git://github.com/quartzjer/Locker.git
cd Locker
npm install
node locker.js #Cannot find module 'connect/middleware/router'
npm install [email protected]
npm install [email protected]
npm ls installed
node locker.js #works

from locker.

seancron avatar seancron commented on August 22, 2024

I just noticed that the Express github has some details about compatibility: https://github.com/visionmedia/express

They say that "Express 1.x is compatible with node 0.2.x and connect < 1.0" and "Express 2.x is compatible with node 0.4.x and connect 1.x".

Since we're using node 0.4.x, shouldn't we be using express 2.x and connect 1.x? For anyone who is interested, here are the details of the express 1.x to 2.x migration: http://expressjs.com/migrate.html

from locker.

temas avatar temas commented on August 22, 2024

I've updated the package.json and reverified everything against a fresh build for latest node 0.4.3, express 2.1.0 and connect 1.1.4. It should all be fixed now.

from locker.

sambirk avatar sambirk commented on August 22, 2024

great stuff

from locker.

smurthas avatar smurthas commented on August 22, 2024

Everything is working on my side - is it all good with you guys?

from locker.

temas avatar temas commented on August 22, 2024

If I can get one more confirmation of a clean install that is running correctly I'm going to close this out.

from locker.

ctide avatar ctide commented on August 22, 2024

Works for me, thanks!

from locker.

seancron avatar seancron commented on August 22, 2024

I think you can close this. Fresh node v0.4.2 install, npm install and node locker.js worked with no errors.

from locker.

temas avatar temas commented on August 22, 2024

Thanks for all the diligence in getting this sorted.

from locker.

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.