# Raspberry pi 3 Model B node-red error

**URL:** https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894
**Category:** General
**Created:** [8 April 2019 09:10 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894 "2019-04-08T09:10:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Kwonsoyeong](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kwonsoyeong](https://discourse.nodered.org/u/Kwonsoyeong)
#### Post date: [8 April 2019 09:10 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/1 "2019-04-08T09:10:49Z")

</div>

![node%20red%20error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0fdea18ab651b8b9ee2c5ad90dc3fd7863e1c123.png)  
Hi Today, I want to use node-red and dashboard for Raspberry pi 3 Model B.  
I was only download node-js.  
And I am started node-red but I'm not saw palette menu.  
And I tried 'npm install node-red dashboard' but I saw error message.

'/opt/nodejs/lib/node\_modules/npm/bin/npm-cli.js:85  
let notifier = require('update-notifier')({pkg})  
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode  
at exports.runInThisContext (vm.js:53:16)  
at Module.\_compile (module.js:373:25)  
at Object.Module.\_extensions..js (module.js:416:10)  
at Module.load (module.js:343:32)  
at Function.Module.\_load (module.js:300:12)  
at Function.Module.runMain (module.js:441:10)  
at startup (node.js:140:18)  
at node.js:1043:3'  
Help me, please.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 April 2019 09:16 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/2 "2019-04-08T09:16:29Z")

</div>

It's always useful to show the log if you have an issue.  
But that is a very old version of Node-RED.

Have you tried upgrading using the script on the Raspberry Pi page in the documentation on the website? This will download and install the correct version of nodejs and the latest version of Node-RED.

---

<div class="post-metadata">

### Author: ![Kwonsoyeong](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kwonsoyeong](https://discourse.nodered.org/u/Kwonsoyeong)
#### Post date: [8 April 2019 09:19 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/3 "2019-04-08T09:19:24Z")

</div>

So, can I use this command? 'npm install -g node-red '

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 April 2019 09:22 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/4 "2019-04-08T09:22:57Z")

</div>

Look at the Install/Upgrade section of the page I suggested you read. [https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<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 April 2019 09:47 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/5 "2019-04-08T09:47:49Z")

</div>

> [@Kwonsoyeong](#):
>
> And I tried 'npm install node-red dashboard' but I saw error message.

1. is that the exact command you issued? because there is a dash `-` missing between `red` and `dashboard`
2. did you do a `cd .node-red` before issuing the command?

When installing nodes using the CLI you always want to be in the `.node-red` directory before using the `npm` command.

---

<div class="post-metadata">

### Author: ![Kwonsoyeong](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kwonsoyeong](https://discourse.nodered.org/u/Kwonsoyeong)
#### Post date: [9 April 2019 00:29 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/6 "2019-04-09T00:29:34Z")

</div>

Yes, but I saw this error too:cry:😢

root@raspberrypi:~/.node-red# npm install node-red-dashboard  
/opt/nodejs/lib/node\_modules/npm/bin/npm-cli.js:85  
let notifier = require('update-notifier')({pkg})  
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode  
at exports.runInThisContext (vm.js:53:16)  
at Module.\_compile (module.js:373:25)  
at Object.Module.\_extensions..js (module.js:416:10)  
at Module.load (module.js:343:32)  
at Function.Module.\_load (module.js:300:12)  
at Function.Module.runMain (module.js:441:10)  
at startup (node.js:140:18)  
at node.js:1043:3

---

<div class="post-metadata">

### Author: ![Kwonsoyeong](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kwonsoyeong](https://discourse.nodered.org/u/Kwonsoyeong)
#### Post date: [9 April 2019 01:51 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/9 "2019-04-09T01:51:38Z")

</div>

I solved this problem! Thank you~:blush:

---

<div class="post-metadata">

### Author: ![Kwonsoyeong](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kwonsoyeong](https://discourse.nodered.org/u/Kwonsoyeong)
#### Post date: [9 April 2019 01:52 UTC](https://discourse.nodered.org/t/raspberry-pi-3-model-b-node-red-error/9894/10 "2019-04-09T01:52:01Z")

</div>

I solved this problem! 😊
