My understanding is that the engines section is only consulted when your code is listed as a dependency in another project. While some platforms like Heroku use that field to determine the version of node to run your code with, when running locally it is ignored.
-- Daniel R. <[email protected]> [http://danielr.neophi.com/] On May 26, 2014 11:25 PM, "Shane Niu" <[email protected]> wrote: > Hi, > > I am trying to specify node version in package.json, but it seems not work. > > I simply tried to give a wrong node version { "engines": { "node": > "1.10.11"}} and "engineStrict": true. > > Then I run both `npm install` and `npm start`, there is no complain from > npm about node version. > > I also tried to give a wrong npm version in the "engines" but it doesn't > work as well. > > Is there anything I misunderstand here? Thanks a lot! > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/c1a0c119-27cc-4183-b08a-36853145199e%40googlegroups.com<https://groups.google.com/d/msgid/nodejs/c1a0c119-27cc-4183-b08a-36853145199e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAETDeSBidhPr6h9ti%2B0A-61eRcFHmv36Ur57kgCR224BcPtrwA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
