i have a question,

when i do npm install it installs globally and when i do npm install -d it 
installes all the dependencies stated on package.json locally??

On Saturday, October 15, 2011 5:12:58 PM UTC+1, Isaac Schlueter wrote:
>
> npm install --production
>
> On Sat, Oct 15, 2011 at 00:37, Gianluca Padovani <[email protected]> 
> wrote:
> > Hi to all,
> > in my dev laptop when I execute "npm install" with this package.json
> >
> > {
> > [..]
> >
> >  "dependencies": {
> >    "formidable": "~1.0.6"
> >  },
> >  "devDependencies": {
> >    "nodeunit": "~0.5.5",
> >    "far": "~0.0.7"
> >  }
> >
> > [..]
> >
> > }
> >
> > npm install also the devDependencies, for now it's ok but when I'll go
> > in production this will be a problem. I verify the "npm config ls -l"
> > and I don't have the dev flag, also executing "npm install
> > --dev=false" I receive the dev packages.
> >
> > Can anyone help me?
> >
> > Thanks
> > Gianluca
> >
> > --
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to