You can add build dependencies to your "dependencies" section of the
package.json file. If that package exposes a "grunt" executable then
it will be available to your npm scripts like "preinstall" or
"install", so you can execute it as if it were installed globally.

On Thu, Aug 16, 2012 at 4:56 PM, Jason Strimpel <jstrim...@gmail.com> wrote:
> Is there anyway to instruct a local package.json to install the dependencies
> in the global node_modules dir? I am investigating using node (grunt) as
> part of our build process for the front end, which developers will use for
> local builds. I need to make it easy for developers to pull down the
> package.json from our private repo and install the node build dependencies
> globally so that the build can run on any machine without requiring a
> developer to understand npm or node.
>
> --
> 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

Reply via email to