# Function Node : Installing Package Specific Version

**URL:** <https://discourse.nodered.org/t/function-node-installing-package-specific-version/92332>\
**Category:** General\
**Tags:** function-node\
**Created:** [11 October 2024 22:52 UTC](https://discourse.nodered.org/t/function-node-installing-package-specific-version/92332 "2024-10-11T22:52:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JpEncausse](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jpencausse/32/2561_2.png) [@JpEncausse](https://discourse.nodered.org/u/JpEncausse)\
**Post date:** [11 October 2024 22:52 UTC](https://discourse.nodered.org/t/function-node-installing-package-specific-version/92332/1 "2024-10-11T22:52:36Z")

</div>

Hello,

In a Function Node, I tried to install `@azure/openai@1.0.0-beta.12` but get error while installing the module.

- It works with `@azure/openai` but install the v2.x and break a lot of things.
- It works with npm install in node-red data folder

May be I'm using the wrong syntax in the Function node ?

_Side Question_: How/When does it clean it's package.json file ? For install I installed `@tensorflow/tfjs` then `@tensorflow/tfjs-node` I see in the package.json the first one is still there

---

<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:** [12 October 2024 12:43 UTC](https://discourse.nodered.org/t/function-node-installing-package-specific-version/92332/2 "2024-10-12T12:43:20Z")

</div>

You can not install specific versions, it will always install the latest.

The function node will not uninstall nodes when they are removed from the setup tab

---

<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:** [26 October 2024 12:43 UTC](https://discourse.nodered.org/t/function-node-installing-package-specific-version/92332/3 "2024-10-26T12:43:44Z")

</div>

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