node-mysql/gently/npm issues

16 views
Skip to first unread message

billywhizz

unread,
Oct 23, 2010, 8:03:14 PM10/23/10
to nodejs
Hi,

I am trying to get Felix's node-mysql running against latest node
release (0.2.3) on Fedora 12 64 bit but i cannot get it to run because
npm seems to be broken. i've raised an issues on the npm github, but
in the meantime, are there any instructions for how to get node-mysql
to work without using npm to install it?

This also raises the issue of what the best way forward is in general
for package management on node.js. is npm the de-facto standard
package manager now? if so, what versions of node.js is it supposed to
be working with?

Personally i think it might be better to have instructions on how to
manually install components rather than having a dependency on npm
while node.js itself is still under heavy development.

Am not being critical at all - just wanted to raise the issue to see
what people think...

Dean Landolt

unread,
Oct 24, 2010, 9:13:05 AM10/24/10
to nod...@googlegroups.com
On Sat, Oct 23, 2010 at 8:03 PM, billywhizz <apjo...@gmail.com> wrote:
Hi,

I am trying to get Felix's node-mysql running against latest node
release (0.2.3) on Fedora 12 64 bit but i cannot get it to run because
npm seems to be broken. i've raised an issues on the npm github, but
in the meantime, are there any instructions for how to get node-mysql
to work without using npm to install it?


For any package, you can always just git clone it and require.paths.unshift it. IIRC there's node_libraries where you don't even have to path-munge to get access to it but when it comes downs to it require can see anything on its paths array, so just have at it.

Felix Geisendörfer

unread,
Oct 24, 2010, 10:18:12 AM10/24/10
to nodejs
> > in the meantime, are there any instructions for how to get node-mysql
> > to work without using npm to install it?

Let me know if this works for you:

http://github.com/felixge/node-mysql/commit/9dd305754794d2766895f0405fbb5da3ed93ba9c

--fg

On Oct 24, 3:13 pm, Dean Landolt <d...@deanlandolt.com> wrote:

Corey Hart

unread,
Oct 24, 2010, 3:30:53 PM10/24/10
to nodejs
What's the best way to install it using one of the version tag
downloads? There's the dependency on Gently that's not easily
understood how to integrate it.


On Oct 24, 7:18 am, Felix Geisendörfer <fe...@debuggable.com> wrote:
> > > in the meantime, are there any instructions for how to get node-mysql
> > > to work without using npm to install it?
>
> Let me know if this works for you:
>
> http://github.com/felixge/node-mysql/commit/9dd305754794d2766895f0405...

Felix Geisendörfer

unread,
Oct 24, 2010, 4:42:54 PM10/24/10
to nodejs
> What's the best way to install it using one of the version tag
> downloads?

Same idea, you just download the archive and extract it into
~/.node_libraries.

> There's the dependency on Gently that's not easily
> understood how to integrate it.

Gently is only needed for running the test suite. If you want to do
that you can install gently without npm like this:

cd ~/.node_libraries
git clone git://github.com/felixge/node-gently.git gently

Let me know if that makes sense / works for you.

--fg

billywhizz

unread,
Oct 24, 2010, 5:55:18 PM10/24/10
to nodejs
thanks for the info folks. my issues with npm have been solved by
isaac and had a lot to do with me being very stupid indeed. have node-
mysql working as expected now after installing using npm.
Reply all
Reply to author
Forward
0 new messages