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.
Version | OS | Architecture |
---|---|---|
Node.js 14.x | Linux | x86_64 |
Node.js 12.x | Linux | x86_64 |
Node.js 10.x | Linux | x86_64 |
Node.js 8.x | Linux | x86_64 |
Notice The Node.js 4.x and Node.js 6.x runtime environments are no longer supported by Function Compute.
- By June 30, 2022, you can create and update functions whose runtime environments are Node.js 4.x or Node.js 6.x. However, Function Compute no longer provides feature updates, including security patches on the Node.js 4.x or Node.js 6.x runtime environments.
- As of July 1, 2022, you can no longer create functions whose runtime environments are Node.js 4.x or Node.js 6.x. However, you can still update existing functions that use the Node.js 4.x or Node.js 6.x runtime environments.
- As of October 1, 2022, you can no longer update existing functions that use the Node.js 4.x or Node.js 6.x runtime environments. However, you can still run the existing functions in the Node.js 4.x or Node.js 6.x runtime environments.
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 14
Module | Description | Version |
---|---|---|
co | Control flow | 4.6.0 |
gm | Image processing library | 1.23.0 |
ali-oss | OSS SDK | 6.6.0 |
aliyun-sdk | Alibaba Cloud SDK | 1.12.3 |
alicloud/fc2 | FC SDK | 2.2.0 |
tablestore | Tablestore SDK | 5.0.7 |
body | HTTP body parsing library | 5.1.0 |
raw-body | HTTP body parsing library | 2.4.1 |
ali-mns | MNS SDK | 2.6.8 |
alicloud/pop-core | Alibaba Cloud POP API SDK | 1.7.9 |
alicloud/fnf | Workflow SDK | 1.1.0 |
Node.js 12
Module | Description | Version |
---|---|---|
co | Control flow | 4.6.0 |
gm | Image processing library | 1.23.0 |
ali-oss | OSS SDK | 6.6.0 |
aliyun-sdk | Alibaba Cloud SDK | 1.12.3 |
alicloud/fc2 | FC SDK | 2.2.0 |
opencv | OpenCV | 7.0.0 |
tablestore | Tablestore SDK | 5.0.7 |
body | HTTP body parsing library | 5.1.0 |
raw-body | HTTP body parsing library | 2.4.1 |
ali-mns | MNS SDK | 2.6.8 |
alicloud/pop-core | Alibaba Cloud POP API SDK | 1.7.9 |
alicloud/fnf | Workflow SDK | 1.1.0 |
Node.js 10 and Node.js 8
Module | Description | Version |
---|---|---|
co | Control flow | 4.6.0 |
gm | Image processing library | 1.23.0 |
ali-oss | OSS SDK | 4.10.1 |
aliyun-sdk | Alibaba Cloud SDK | 1.11.0 |
alicloud/fc2 | FC SDK | 2.1.0 |
opencv | OpenCV | 6.2.0 |
tablestore | Tablestore SDK | 4.2.0 |
body | HTTP body parsing library | 5.1.0 |
raw-body | HTTP body parsing library | 2.3.2 |
ali-mns | MNS SDK | 2.6.5 |
alicloud/fnf | Workflow SDK | 1.1.0 |