# Node-red command not found

**URL:** <https://discourse.nodered.org/t/node-red-command-not-found/86845>\
**Category:** General\
**Created:** [29 March 2024 01:50 UTC](https://discourse.nodered.org/t/node-red-command-not-found/86845 "2024-03-29T01:50:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenryTrang](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henrytrang/32/81582_2.png) [@HenryTrang](https://discourse.nodered.org/u/HenryTrang)\
**Post date:** [29 March 2024 01:50 UTC](https://discourse.nodered.org/t/node-red-command-not-found/86845/1 "2024-03-29T01:50:56Z")

</div>

hello vateran

i have install the node-red by command npm install -g --unsafe-perm node-red. and when bash node-red to start it, i get feedback node-red command not found.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/3/33a7d7f9c156e9db95dad37a733dd8d5949fd132.png)  
how can i fixed?

thanks for reading

---

<div class="post-metadata">

**Author:** ![HenryTrang](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henrytrang/32/81582_2.png) [@HenryTrang](https://discourse.nodered.org/u/HenryTrang)\
**Post date:** [29 March 2024 02:06 UTC](https://discourse.nodered.org/t/node-red-command-not-found/86845/2 "2024-03-29T02:06:05Z")

</div>

but it work via window cmd  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/8/a87e058a5c0ab6ccc513c863dbb4d3e141d69c09.png)

---

<div class="post-metadata">

**Author:** ![HenryTrang](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henrytrang/32/81582_2.png) [@HenryTrang](https://discourse.nodered.org/u/HenryTrang)\
**Post date:** [29 March 2024 03:21 UTC](https://discourse.nodered.org/t/node-red-command-not-found/86845/3 "2024-03-29T03:21:39Z")

</div>

Hello All

i fixed this bug. in window cmd i bash where node-red. and i found the path to the node-red. i copy the path and set it in enviropment variable. it work now.

sorry i am naive.

---

<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:** [12 April 2024 03:22 UTC](https://discourse.nodered.org/t/node-red-command-not-found/86845/4 "2024-04-12T03:22:23Z")

</div>

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