Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.38 KB

availableVersions.md

File metadata and controls

42 lines (30 loc) · 1.38 KB
copyright lastupdated
years
2015, 2017
2017-06-08

{:shortdesc: .shortdesc} {:new_window: target="_blank"} {:codeblock: .codeblock}

Available versions

{: #available_versions}

{{site.data.keyword.Bluemix}} provides all the currently available Node.js runtimes. Of the available runtimes, IBM provides specific versions which contain enhancements and bug fixes. See Latest Updates to the Node.js Buildpack for more information about the supported versions. {: shortdesc}

The IBM Node.js buildpack caches the IBM runtime versions. If you use IBM SDK for Node.js runtime in your application, your application performs faster when you push it to Bluemix.

Specifying a version

  • Use the node parameter in the engines section in the package.json file to specify the version of Node.js runtime that you want to run.

  • If you need to specify a version of npm other than the version bundled with Node.js, use the npm parameter in the engines section in the package.json file .

See the following example:

{
  "name": "myapp",
  "description": "this is my app",
  "version": "0.1",
  "engines": {
     "node": "4.2.4",
     "npm": "3.10.10"
  }
}

{: codeblock}

Note: A node version should always be specified in the package.json file. If it is not, the latest node version will be used.