tencent cloud

Notes on Node.js
Last updated:2025-10-11 11:47:02
Notes on Node.js
Last updated: 2025-10-11 11:47:02

Node.js Version Selection

Currently, the following versions of Node.js programming language are supported:
Node.js 20.19
Node.js 18.15
Node.js 16.13
Node.js 14.18
Node.js 12.16
Node.js 10.15
Node.js 8.9 (deactivating soon)
Node.js 6.10 (deactivating soon)
You can choose a desired runtime environment when creating a function.

Environment Variables

The environment variables built in the current Node.js runtime environment are as shown in the table below:
Node.js Version
Environment Variable Key
Specific Value or Value Source
Node.js 20.19
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node20/lib/node_modules:/opt:/opt/node_modules
Node.js 18.15
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node18/lib/node_modules:/opt:/opt/node_modules
Node.js 16.13
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node16/lib/node_modules:/opt:/opt/node_modules
Node.js 14.18
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node14/lib/node_modules:/opt:/opt/node_modules
Node.js 12.16
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node12/lib/node_modules:/opt:/opt/node_modules
Node.js 10.15
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node10/lib/node_modules:/opt:/opt/node_modules
Node.js 8.9
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node8/lib/node_modules:/opt:/opt/node_modules
Node.js 6.10
NODE_PATH
/var/user:/var/user/node_modules:/var/lang/node6/lib/node_modules:/opt:/opt/node_modules
For more information on environment variables, see Environment Variables.

Included Library and Usage

Note:
For Node.js 14.18 and later, the platform no longer has additional built-in dependency libraries. For more information on the dependencies required by code execution, see Dependency Installation and Online Dependency Installation.

COS SDK

SCF's runtime environment for Node.js 12.16 or earlier already contains the COS SDK for Node.js, and the specific version is cos-nodejs-sdk-v5.
The COS SDK can be referenced and used within the code as follows:
var COS = require('cos-nodejs-sdk-v5');
For more information on how to use the COS SDK, see COS SDK for Node.js.

Built-in library in environment

The following libraries are supported in Node.js runtime:
Node.js 12.16
Node.js 10.15
Node.js 8.9
Node.js 6.10
Library Name
Version
cos-nodejs-sdk-v5
2.5.20
base64-js
1.3.1
buffer
5.5.0
crypto-browserify
3.12.0
ieee754
1.1.13
imagemagick
0.1.3
isarray
2.0.5
jmespath
0.15.0
lodash
4.17.15
microtime
3.0.0
npm
6.13.4
punycode
2.1.1
puppeteer
2.1.1
qcloudapi-sdk
0.2.1
querystring
0.2.0
request
2.88.2
sax
1.2.4
scf-nodejs-serverlessdb-sdk
1.1.0
tencentcloud-sdk-nodejs
3.0.147
url
0.11.0
uuid
7.0.3
xml2js
0.4.23
xmlbuilder
15.1.0

Library Name
Version
cos-nodejs-sdk-v5
2.5.14
base64-js
1.3.1
buffer
5.4.3
crypto-browserify
3.12.0
ieee754
1.1.13
imagemagick
0.1.3
isarray
2.0.5
jmespath
0.15.0
lodash
4.17.15
microtime
3.0.0
npm
6.4.1
punycode
2.1.1
puppeteer
2.0.0
qcloudapi-sdk
0.2.1
querystring
0.2.0
request
2.88.0
sax
1.2.4
scf-nodejs-serverlessdb-sdk
1.0.1
tencentcloud-sdk-nodejs
3.0.104
url
0.11.0
uuid
3.3.3
xml2js
0.4.22
xmlbuilder
13.0.2

Library Name
Version
cos-nodejs-sdk-v5
2.5.8
base64-js
1.2.1
buffer
5.0.7
crypto-browserify
3.11.1
ieee754
1.1.8
imagemagick
0.1.3
isarray
2.0.2
jmespath
0.15.0
lodash
4.17.4
npm
5.6.0
punycode
2.1.0
puppeteer
1.14.0
qcloudapi-sdk
0.1.5
querystring
0.2.0
request
2.87.0
sax
1.2.4
tencentcloud-sdk-nodejs
3.0.56
url
0.11.0
uuid
3.1.0
xml2js
0.4.17
xmlbuilder
9.0.1

Library Name
Version
base64-js
1.2.1
buffer
5.0.7
cos-nodejs-sdk-v5
2.0.7
crypto-browserify
3.11.1
ieee754
1.1.8
imagemagick
0.1.3
isarray
2.0.2
jmespath
0.15.0
lodash
4.17.4
npm
3.10.10
punycode
2.1.0
qcloudapi-sdk
0.1.5
querystring
0.2.0
request
2.87.0
sax
1.2.4
tencentcloud-sdk-nodejs
3.0.10
url
0.11.0
uuid
3.1.0
xml2js
0.4.17
xmlbuilder
9.0.1

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback