This topic describes the Node.js runtime environments in which you can write function code in Function Compute.

Node.js runtime environments

The following table describes the Node.js runtime environments that are supported by Function Compute.

VersionOperating systemArchitecture
Node.js 16.x (public preview)Linuxx86_64
Node.js 14.xLinuxx86_64
Node.js 12.xLinuxx86_64
Node.js 10.xLinuxx86_64
Node.js 8.xLinuxx86_64
Important The Node.js 4.4 and Node.js 6 runtime environments are no longer supported by Function Compute. For more information, see Runtime deprecation policy.

Node.js built-in modules

A Node.js runtime environment in Function Compute provides standard Node.js modules and the common modules that you can use. The following table describes the common modules in Function Compute.

Node.js 16 (public preview)

ModuleDescriptionVersion
coControl flow4.6.0
gmImage processing library1.23.1
ali-ossOSS SDK6.17.1
aliyun-sdkAlibaba Cloud SDK1.12.5
alicloud/fc2FC SDK2.6.0
tablestoreTablestore SDK5.2.1
bodyHTTP body parsing library5.1.0
raw-bodyHTTP body parsing library2.5.1
ali-mnsMNS SDK2.6.8
alicloud/pop-coreAlibaba Cloud POP API SDK1.7.12

Node.js 14

ModuleDescriptionVersion
coControl flow4.6.0
gmImage processing library1.23.0
ali-ossOSS SDK6.6.0
aliyun-sdkAlibaba Cloud SDK1.12.3
alicloud/fc2FC SDK2.2.0
tablestoreTablestore SDK5.0.7
bodyHTTP body parsing library5.1.0
raw-bodyHTTP body parsing library2.4.1
ali-mnsMNS SDK2.6.8
alicloud/pop-coreAlibaba Cloud POP API SDK1.7.9
alicloud/fnfWorkflow SDK1.1.0

Node.js 12

ModuleDescriptionVersion
coControl flow4.6.0
gmImage processing library1.23.0
ali-ossOSS SDK6.6.0
aliyun-sdkAlibaba Cloud SDK1.12.3
alicloud/fc2FC SDK2.2.0
opencvOpenCV7.0.0
tablestoreTablestore SDK5.0.7
bodyHTTP body parsing library5.1.0
raw-bodyHTTP body parsing library2.4.1
ali-mnsMNS SDK2.6.8
alicloud/pop-coreAlibaba Cloud POP API SDK1.7.9
alicloud/fnfWorkflow SDK1.1.0

Node.js 10 and Node.js 8

ModuleDescriptionVersion
coControl flow4.6.0
gmImage processing library1.23.0
ali-ossOSS SDK4.10.1
aliyun-sdkAlibaba Cloud SDK1.11.0
alicloud/fc2FC SDK2.1.0
opencvOpenCV6.2.0
tablestoreTablestore SDK4.2.0
bodyHTTP body parsing library5.1.0
raw-bodyHTTP body parsing library2.3.2
ali-mnsMNS SDK2.6.5
alicloud/fnfWorkflow SDK1.1.0

References