# Install Node-RED on Alibaba Cloud Service but doesn't work

**URL:** <https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738>\
**Category:** General\
**Created:** [25 April 2022 03:10 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738 "2022-04-25T03:10:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![4NandA12](https://avatars.discourse-cdn.com/v4/letter/4/dec6dc/32.png) [@4NandA12](https://discourse.nodered.org/u/4NandA12)\
**Post date:** [25 April 2022 03:10 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/1 "2022-04-25T03:10:51Z")

</div>

Hallo Sir,

I'm try install Node-RED to Ubuntu 16.04 on Alibaba cloud service.  
I will use the method to add `node-red` to the system path like so:

`sudo npm install -g --unsafe-perm node-red`

 ![gambar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b39250975998b9a26f413c54e53fb523f62e43cb.jpeg)  
As a rule, avoid using `npm 1.x` for the installation because it is not suitable for the process. To upgrade to version 2, run the command below:

root@iZk1ab7zg8omuutv9jwtbyZ:~# sudo npm install -gnpm@2.x  
sudo: unable to resolve host iZk1ab7zg8omuutv9jwtbyZ  
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'  
npm WARN root No description  
npm WARN root No repository field.  
npm WARN root No README data  
npm WARN root No license field.

root@iZk1ab7zg8omuutv9jwtbyZ:~# sudo ufw allow 1880  
sudo: unable to resolve host iZk1ab7zg8omuutv9jwtbyZ  
Skipping adding existing rule  
Skipping adding existing rule (v6)

root@iZk1ab7zg8omuutv9jwtbyZ:~# node-red  
 ![gambar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/89c6ccd9187992f90d82186cbee069a66fd69d35.png)

But it's doesn't work, What should be correction?

Thank you Sir

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 April 2022 07:04 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/2 "2022-04-25T07:04:04Z")

</div>

What version of node is on that server?

The error suggests you have too old a version for Node-RED to run.

You need node 12 or later.

---

<div class="post-metadata">

**Author:** ![4NandA12](https://avatars.discourse-cdn.com/v4/letter/4/dec6dc/32.png) [@4NandA12](https://discourse.nodered.org/u/4NandA12)\
**Post date:** [25 April 2022 07:30 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/3 "2022-04-25T07:30:24Z")

</div>

This is npm, node, nodejs version

 ![gambar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/079258ceabc43fbc53d78b66a74e88efa513bf3b.jpeg)

I'm install node red on ubuntu following this link  
[https://www.alibabacloud.com/blog/deploy-iot-applications-with-node-red-on-alibaba\_595281](https://www.alibabacloud.com/blog/deploy-iot-applications-with-node-red-on-alibaba_595281)

How to install node 12 Sir?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [25 April 2022 08:26 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/4 "2022-04-25T08:26:12Z")

</div>

The document you have linked to was written in August 2019, it is now very out of date.

Ubuntu 16.04 went end of life in April 2021 ([Ubuntu release cycle | Ubuntu](https://ubuntu.com/about/release-cycle)) , you REALLY should not be deploying anything new on it.

If you really can't change it to something newer, then you need to look at the [https://nodejs.org](https://nodejs.org) website for instructions on how to install something MUCH newer than v4.x

---

<div class="post-metadata">

**Author:** ![4NandA12](https://avatars.discourse-cdn.com/v4/letter/4/dec6dc/32.png) [@4NandA12](https://discourse.nodered.org/u/4NandA12)\
**Post date:** [25 April 2022 13:40 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/5 "2022-04-25T13:40:51Z")

</div>

Hallo Sir,

Thank you for your suggestion, the first think I will try to update nodejs with new version, if still not solved, will reset image OS system with Ubuntu 20.04.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 April 2022 14:15 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/6 "2022-04-25T14:15:23Z")

</div>

If you can start with Ubuntu 20.04 then our install script should work. [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 June 2022 14:15 UTC](https://discourse.nodered.org/t/install-node-red-on-alibaba-cloud-service-but-doesnt-work/61738/7 "2022-06-24T14:15:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
