Before you use SDK for Node.js to send and subscribe to messages, perform the steps in this topic to prepare the environment.
Environment requirementsNode.js 7.6.0 or later is installed. For more information, visit Install Node.js.
After Node.js is installed, you can run the
node -V command to view the version of Node.js.
Install SDK for Node.js
npm i @aliyunmq/mq-http-sdk