Comments (27)
It sounds like you don't have the connect module properly installed. Can you paste the results of npm ls installed
here?
from locker.
I get this same issue too. Here's the results of npm ls installed
: http://pastebin.com/uY4Bttab
from locker.
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.
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.
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.
Here's the output of "npm ls installed" and btw I'm using node 0.4.4-pre from the ubuntu ppa
So I need [email protected] and [email protected] to make it work?? I will try it now, thanks!
from locker.
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.
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.
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.
Can you try clearing out the older versions of connect? Really odd issue, because it all looks like it should be fine.
from locker.
nope that didn't solve it
from locker.
Did you try the deactivate -> reactivate process that magg did?
from locker.
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.
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.
Any luck samBiotic?
from locker.
Same for me:
https://gist.github.com/90f5c26367e699ce76f0
Fresh node install, OSX 10.6.6.
from locker.
Also worth noting that I installed the specific versions mentioned here ([email protected] and [email protected]) and had the same issue.
from locker.
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.
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.
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.
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.
great stuff
from locker.
Everything is working on my side - is it all good with you guys?
from locker.
If I can get one more confirmation of a clean install that is running correctly I'm going to close this out.
from locker.
Works for me, thanks!
from locker.
I think you can close this. Fresh node v0.4.2 install, npm install
and node locker.js
worked with no errors.
from locker.
Thanks for all the diligence in getting this sorted.
from locker.
Related Issues (20)
- Demo apps should be clean examples
- Links to the developer documentation should redirect when a logged-out user visits HOT 1
- Need a method for removing apps from Singly when the repository is deleted. HOT 3
- github synclet does not remove or rename files properly on sync
- github synclet does not remove or rename files properly on sync HOT 1
- proxy support HOT 2
- Allow authing other services without FB/Twitter
- Incorrect path in documentation
- Events from a Calendar Connector
- 'SyntaxError: Unexpected token' on first run
- 'SyntaxError: Unexpected token' on first run HOT 1
- Ubuntu 12.04: Locker not getting installed HOT 1
- Default Apps not showing data
- Error in FB Synclet
- Connector Creation Example Not valid
- run locker with node v6 HOT 7
- Issue: Attempting to open connection to running mongodb server. HOT 3
- Please update docs HOT 6
- show "Looks like everything worked!" but when run"./locker", not run. HOT 1
- end event listener registration error
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 locker.