# Cant find process.env settings

**URL:** <https://discourse.nodered.org/t/cant-find-process-env-settings/1800>\
**Category:** General\
**Created:** [25 July 2018 04:23 UTC](https://discourse.nodered.org/t/cant-find-process-env-settings/1800 "2018-07-25T04:23:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgeena\_thomas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/georgeena_thomas/32/1024_2.png) [@georgeena\_thomas](https://discourse.nodered.org/u/georgeena_thomas)\
**Post date:** [25 July 2018 04:23 UTC](https://discourse.nodered.org/t/cant-find-process-env-settings/1800/1 "2018-07-25T04:23:51Z")

</div>

I have a node-red flow that pulls in env variables from a process.env node but I can't seem to find where exactly it is setting those values in my project.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 July 2018 07:43 UTC](https://discourse.nodered.org/t/cant-find-process-env-settings/1800/2 "2018-07-25T07:43:58Z")

</div>

I presume you mean `node-red-contrib-process-env`. I have not used that but looking at the readme I assume it is the system process environment that it is accessing. System environment variables can be set in many ways. Which variables in particular are you referring to?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 July 2018 09:16 UTC](https://discourse.nodered.org/t/cant-find-process-env-settings/1800/3 "2018-07-25T09:16:19Z")

</div>

This might help: [Using environmental variables (system or user defined)](https://flows.nodered.org/flow/8a13d11dfe80e279df83341e3e17bcc1)

---

<div class="post-metadata">

**Author:** ![Chris24918](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@Chris24918](https://discourse.nodered.org/u/Chris24918)\
**Post date:** [21 May 2019 19:24 UTC](https://discourse.nodered.org/t/cant-find-process-env-settings/1800/4 "2019-05-21T19:24:24Z")

</div>

Hello Node-red Newbi here. So I added  
env: process.env in my settings.js file under functionGlobalContext. I have an environmental variable named DeviceID. I put $(DeviceID) in the ClientID Property within the MQTT node. Of course my DeviceID env variable is set to the ClientID actual value "which I can see with the echo $DeviceID terminal command". What am I doing wrong. It will not connect with the variable name only with the value the name is set to.  
FYI I did shutdown Node red and restart after changes to settings.js.  
Thanks for your input.
