# Rollback custom node

**URL:** <https://discourse.nodered.org/t/rollback-custom-node/27656>\
**Category:** Developing Nodes\
**Created:** [2 June 2020 09:30 UTC](https://discourse.nodered.org/t/rollback-custom-node/27656 "2020-06-02T09:30:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [2 June 2020 09:30 UTC](https://discourse.nodered.org/t/rollback-custom-node/27656/1 "2020-06-02T09:30:59Z")

</div>

Is there any possibility to rollback the installation of a new version of a "contrib" custom node?

Use case: A 4.x.x version is buggy and user wants to rollback to previous 3.x.x version.  
Use case: Migration takes to much effort and user want to stay and migrate later.

---

<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:** [2 June 2020 09:35 UTC](https://discourse.nodered.org/t/rollback-custom-node/27656/2 "2020-06-02T09:35:50Z")

</div>

depends where/how they installed it in the first place...  
if from npm then

```auto
cd ~/.node-red
npm uninstall custom_node_name
npm install custom_node_name@3

If from a file or npm packed tgz then just the same but point at the old file for the install
```

---

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [4 June 2020 18:32 UTC](https://discourse.nodered.org/t/rollback-custom-node/27656/3 "2020-06-04T18:32:22Z")

</div>

So I assume that there is no build in function!

The command line works fine. Thanks for that.

Only one comment: in docker environment `cd /data/.node-red` works

---

<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:** [3 August 2020 18:32 UTC](https://discourse.nodered.org/t/rollback-custom-node/27656/4 "2020-08-03T18:32:26Z")

</div>

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