# Node-RED installation on Apple M1 computer

**URL:** https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305
**Category:** General
**Created:** [8 January 2022 13:52 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305 "2022-01-08T13:52:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![KarlAlois](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@KarlAlois](https://discourse.nodered.org/u/KarlAlois)
#### Post date: [8 January 2022 13:52 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/1 "2022-01-08T13:52:43Z")

</div>

Hi Node-RED users,

I just moved from an old Mac mini to the M1 Mac mini 2020 by doing a Time Machine restore using the backup of the old Mac mini. I realize that by doing so, I have transferred a lot of intel code, but thanks to Rosetta everything appears to be working. I can connect with an external browser to Node-RED and everything looks good to the point that I do not know how to stop/start Node-RED via the terminal.

When I enter "node-red-stop" it comes back with "zsh: command not found: node-red-stop".  
The terminal has now changed from bash to zsh and obviously tries to find Node-RED at a different location from where it was on my old Intel Mac mini.  
"which node-red" returns "/usr/local/bin/node-red".  
After already spending far too much time getting homebrew and influxdb@1 installed for M1 native code, I thought I better ask the community whether I should also try to upgrade node.js + Node-RED and if so whether there are online instructions on how to do it. I could not find any.

Should I decide to stay with the intel code, I guess I need to modify .zprofile and/or .zshrc in order to be able to do node-red-stop/-start/-log? but how?

thank you for your help,  
greetings from freezing Bavaria

Karl

---

<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: [8 January 2022 14:01 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/2 "2022-01-08T14:01:56Z")

</div>

I run NR on my mac mini M1 with no issues and NR is installed in the same place.

```auto
Paul@PaulsM1 ~ % which node-red
/usr/local/bin/node-red
Paul@PaulsM1 ~ % 

```

I don't believe you can use node-red-start and node-red-stop on the mac. I just open a terminal and use `node-red` and leave the terminal window open.

---

<div class="post-metadata">

### Author: ![KarlAlois](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@KarlAlois](https://discourse.nodered.org/u/KarlAlois)
#### Post date: [8 January 2022 18:12 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/3 "2022-01-08T18:12:31Z")

</div>

thanks zenofmud,

you are right, i confused it with my other node-red raspberry pi installations and forgot that on my Mac mini I had installed PM2 as outlined in [Starting Node-RED on boot : Node-RED](https://nodered.org/docs/faq/starting-node-red-on-boot)

so I can stop/start with "pm2 stop node-red" and "pm2 start node-red"

This leaves my question open whether it would be beneficial to upgrade node.js + node-red to M1 native code.

---

<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: [8 January 2022 19:26 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/4 "2022-01-08T19:26:56Z")

</div>

If you move to the ARM build of NodeJS you can rebuild any native components of the installed nodes by running `npm rebuild` in the Node-RED userDir (normally `~/.node-red` but logged at startup)

You would also want to re-run `sudo npm install -g --unsafe-perm node-red` to make sure that things like bcrypt get rebuilt as well for best performance as well as any of the other core components.

---

<div class="post-metadata">

### Author: ![KarlAlois](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@KarlAlois](https://discourse.nodered.org/u/KarlAlois)
#### Post date: [8 January 2022 20:59 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/5 "2022-01-08T20:59:07Z")

</div>

thanks hardillb,

would you say, that it will be worth the trouble to move to the ARM build of NodeJS?

---

<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: [8 January 2022 21:11 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/6 "2022-01-08T21:11:21Z")

</div>

Running a native build is always going to be quicker than a transpiled or emulated version.

---

<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: [9 March 2022 21:12 UTC](https://discourse.nodered.org/t/node-red-installation-on-apple-m1-computer/56305/7 "2022-03-09T21:12:06Z")

</div>

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