Menu

1 / 3

Node.js 10 is Now Available

Vercel News·Steven Salat·5 months ago
#Vfu5ZPvU
#vercel#node#version#engines#photo
Reading 0:00
15s threshold

Link to heading How to Upgrade

In order to have your code invoked with Node.js 10 , you need only to add an engines field to your package.json file as follows:

{

"name" : "my-app" ,

"engines" : {

"node" : "10.x"

}

}

As you can see, we have configured 10.x as the version, instead of the exact one.

This is possible because the engines property (as per the documentation ) supports semantic version ranges in its syntax.

At the moment of writing, this will result in Node.js 10.15.3 being used .

NOTE: The range 10.x will allow new deployments to take advantage of security updates and features released to Node.js 10 LTS .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.