Re: [nodejs] NODE_PATH deprecated?

2012-06-22 Thread Isaac Schlueter
On Tue, Jun 19, 2012 at 1:06 PM, Oliver Leics oliver.le...@gmail.com wrote:
 The PLUS is now a MINUS as it came out that it is _not_ the missing
 NODE_PATH env var that makes the installation of dtrace-provider fail
 on a LinuxDebian box.

No, my guess is that it's the lack of DTrace on Linux that makes it fail.

 OT  @Isaac: Please see https://github.com/mcavage/node-restify/issues/161
 That's a general feature request for npm (i.e., install X without Y).

Probably not going to happen.  I could see a use for a Never even try
to install package xyz type of option in npm, but it should be a
feature request, and would need some discussion to flesh out exactly
how it works.  In most cases (including, in my opinion, this one) an
optionalDependency is exactly the right fit.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-22 Thread Oliver Leics
On Sat, Jun 23, 2012 at 2:00 AM, Isaac Schlueter i...@izs.me wrote:
 On Tue, Jun 19, 2012 at 1:06 PM, Oliver Leics oliver.le...@gmail.com wrote:
 The PLUS is now a MINUS as it came out that it is _not_ the missing
 NODE_PATH env var that makes the installation of dtrace-provider fail
 on a LinuxDebian box.

 No, my guess is that it's the lack of DTrace on Linux that makes it fail.

Yes, it fails because of this. Nevertheless restify should install.

But the good news is: Problem solved for me, see
https://github.com/isaacs/npm/issues/2546

 OT  @Isaac: Please see https://github.com/mcavage/node-restify/issues/161
 That's a general feature request for npm (i.e., install X without Y).

 Probably not going to happen.  I could see a use for a Never even try
 to install package xyz type of option in npm, but it should be a
 feature request, and would need some discussion to flesh out exactly
 how it works.

I don't like to fill blacklists.

 In most cases (including, in my opinion, this one) an
 optionalDependency is exactly the right fit.

I see it the same way for dependencies that are okay to fail on install.

But, for example, I saw your commit to tako that makes socket.io
optional by a try-catch. How to state in package.json that socket.io
can be used but must be installed by hand?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-19 Thread Ben Noordhuis
On Tue, Jun 19, 2012 at 2:52 PM, Oliver Leics oliver.le...@gmail.com wrote:
 is NODE_PATH deprecated?

No. Why do you ask?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-19 Thread Oliver Leics
On Tue, Jun 19, 2012 at 4:12 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
 On Tue, Jun 19, 2012 at 2:52 PM, Oliver Leics oliver.le...@gmail.com wrote:
 is NODE_PATH deprecated?

 No. Why do you ask?

nvm does not set it, but:
 - ``npm install -g pkg`` just works
 - ``npm link pkg`` inside a 'local' package just works
 - ``bin-script-of-pkg`` just works

I am not sure why NODE_PATH is still around, as the above 'just works'.

Plus: I have problems installing a module that (somehow) requires
NODE_PATH during install. So I want to know who to blame ;-)

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-19 Thread Ben Noordhuis
On Tue, Jun 19, 2012 at 4:34 PM, Oliver Leics oliver.le...@gmail.com wrote:
 On Tue, Jun 19, 2012 at 4:12 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
 On Tue, Jun 19, 2012 at 2:52 PM, Oliver Leics oliver.le...@gmail.com wrote:
 is NODE_PATH deprecated?

 No. Why do you ask?

 nvm does not set it, but:
  - ``npm install -g pkg`` just works
  - ``npm link pkg`` inside a 'local' package just works
  - ``bin-script-of-pkg`` just works

 I am not sure why NODE_PATH is still around, as the above 'just works'.

 Plus: I have problems installing a module that (somehow) requires
 NODE_PATH during install. So I want to know who to blame ;-)

NODE_PATH is for when you want to load libraries that live outside of
npm (which should, hopefully, be quite rare.)

I'm not sure if npm mucks with NODE_PATH. Probably not, but Isaac will know.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-19 Thread Isaac Schlueter
npm does not muck with NODE_PATH or any other node environment vars.

 Plus: I have problems installing a module that (somehow) requires
 NODE_PATH during install. So I want to know who to blame ;-)

If you share the specifics of the problem (including, at least: what
you did, what you expected, and what the result was), I'm sure we
could track down the culprit.

Specific NODE_PATH setting should not be required by any well-behaved
node module.  Something is probably Doing It Wrong, or just has some
kind of bug that the author didn't notice (perhaps because their
NODE_PATH is set some way that makes it work.)


On Tue, Jun 19, 2012 at 7:55 AM, Ben Noordhuis i...@bnoordhuis.nl wrote:
 On Tue, Jun 19, 2012 at 4:34 PM, Oliver Leics oliver.le...@gmail.com wrote:
 On Tue, Jun 19, 2012 at 4:12 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
 On Tue, Jun 19, 2012 at 2:52 PM, Oliver Leics oliver.le...@gmail.com 
 wrote:
 is NODE_PATH deprecated?

 No. Why do you ask?

 nvm does not set it, but:
  - ``npm install -g pkg`` just works
  - ``npm link pkg`` inside a 'local' package just works
  - ``bin-script-of-pkg`` just works

 I am not sure why NODE_PATH is still around, as the above 'just works'.

 Plus: I have problems installing a module that (somehow) requires
 NODE_PATH during install. So I want to know who to blame ;-)

 NODE_PATH is for when you want to load libraries that live outside of
 npm (which should, hopefully, be quite rare.)

 I'm not sure if npm mucks with NODE_PATH. Probably not, but Isaac will know.

 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines: 
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups nodejs group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] NODE_PATH deprecated?

2012-06-19 Thread Oliver Leics
On Tue, Jun 19, 2012 at 7:11 PM, Isaac Schlueter i...@izs.me wrote:
 Plus: I have problems installing a module that (somehow) requires
 NODE_PATH during install. So I want to know who to blame ;-)

 If you share the specifics of the problem (including, at least: what
 you did, what you expected, and what the result was), I'm sure we
 could track down the culprit.

The PLUS is now a MINUS as it came out that it is _not_ the missing
NODE_PATH env var that makes the installation of dtrace-provider fail
on a LinuxDebian box.

OT  @Isaac: Please see https://github.com/mcavage/node-restify/issues/161
That's a general feature request for npm (i.e., install X without Y).

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups nodejs group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en