# Warnings when starting NR on macOS

**URL:** https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807
**Category:** General
**Created:** [28 March 2020 22:56 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807 "2020-03-28T22:56:59Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [28 March 2020 22:56 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/1 "2020-03-28T22:56:59Z")

</div>

Running MacOS version 10.14.6, starting NR gives

# Welcome to Node-RED

28 Mar 18:51:45 - [info] Node-RED version: v1.0.4  
28 Mar 18:51:45 - [info] Node.js version: v8.11.2  
28 Mar 18:51:45 - [info] Darwin 18.7.0 x64 LE  
28 Mar 18:51:45 - [info] Loading palette nodes  
28 Mar 18:51:47 - [info] Worldmap version 2.3.2  
28 Mar 18:51:47 - [info] Dashboard version 2.19.4 started at /ui  
(node:9155) Warning: N-API is an experimental feature and could change at any time.  
(node:9155) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 'global'

and so on. I realize these messages are just warnings, but I don't think I saw them before NR version 1.0.0. Can anyone explain them? Just curious.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [29 March 2020 00:00 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/2 "2020-03-29T00:00:30Z")

</div>

They are messages coming from node.js itself - they are not being logged by Node-RED.

I don't see those messages when I run on osx, so they may be caused by a contrib node you have installed.

I assume something you have installed is using N-API which is a newer way of creating modules with binary components. And the other speaks for itself... A search through your node modules directory for `GLOBAL` may help to find the node at fault.

Also worth remembering that node 8 is no longer maintained and you ought to be on 10 at least.

---

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [29 March 2020 05:08 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/3 "2020-03-29T05:08:13Z")

</div>

Once again, thanks for the help. Updating node.js to version 12.16.1 eliminated the N-API warning. The node.js website lists 12.16.1 as LTS, but the NR documentation says 10.x is recommended. Does it matter?

The DeprecationWarning was caused by `node-red-contrib-clipboard`. Is it worth raising an issue on GitHub for something this minor? [EDIT] Turns out the warning comes from a dependency, `copy-paste`, which has had an issue open for almost four years. It's an easy fix if it ever has to be done.

---

<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: [29 March 2020 10:06 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/4 "2020-03-29T10:06:29Z")

</div>

> [@drmibell](#):
>
> Is it worth raising an issue on GitHub for something this minor?

If the author doesn't know about it it is unlikely he will fix it 😆

---

<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: [29 March 2020 10:17 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/5 "2020-03-29T10:17:56Z")

</div>

If it only happens on an obsolete version of nodejs it probably isn't worth fixing anyway.

---

<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: [29 March 2020 11:11 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/6 "2020-03-29T11:11:03Z")

</div>

@Colin but if you open an issue in GitHub, you increase someone else finding it and helping them out easier...

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [29 March 2020 11:11 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/7 "2020-03-29T11:11:56Z")

</div>

If you both read the thread you'll see an issue has been open for 4 years on the module that is causing the GLOBAL warning.

The other issue was down to the old version of Node.js where _any_ use of N-API would trigger the warning.

---

<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: [29 March 2020 11:19 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/8 "2020-03-29T11:19:00Z")

</div>

The open issue is with `copy-paste`, There is no open issue with `node-red-contrib-clipboard` which is where I would suggestion opening an issue so future users of that node would be informed. The OP sould point to the `copy-paste` issue if they open an issue in `node-red-contrib-clipboard`

---

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [29 March 2020 21:58 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/9 "2020-03-29T21:58:28Z")

</div>

> [@zenofmud](#):
>
> I would suggestion opening an issue so future users of that node would be informed.

I have opened an [issue](https://github.com/zuhito/node-red-contrib-clipboard/issues/1). I doubt that new users will see it unless they are able to trace the warning message to `node-red-contrib-clipboard`. I suggested some alternatives, but the developer doesn't seem to be maintaining the node, and it's not really his problem. We'll see.

---

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [28 May 2020 21:58 UTC](https://discourse.nodered.org/t/warnings-when-starting-nr-on-macos/23807/10 "2020-05-28T21:58:28Z")

</div>

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