# Added the Ikea dimmer to the nodes

**URL:** <https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167>\
**Category:** General\
**Created:** [23 February 2020 22:56 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167 "2020-02-23T22:56:32Z")\
**Posts on this page:** 12\
**Page:** 2

<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 February 2020 12:43 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/21 "2020-02-25T12:43:47Z")

</div>

@dougcr4 Why did you post this in two different threads?

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [25 February 2020 13:08 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/22 "2020-02-25T13:08:50Z")

</div>

just fatigue

---

<div class="post-metadata">

**Author:** ![unixneo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/unixneo/32/17441_2.png) [@unixneo](https://discourse.nodered.org/u/unixneo)\
**Post date:** [25 February 2020 13:09 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/23 "2020-02-25T13:09:57Z")

</div>

After reading through this: my recommendation is to delete your current install; and then install a clean version with no modules. Make sure that is working with Hello World or whatever; and then install and test one module at a tine via the editor only as described in an earlier reply.

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [25 February 2020 19:19 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/24 "2020-02-25T19:19:40Z")

</div>

Ive been reinstalling since sunday evening:  
heres my latest attempt:-  
run Apps & features and uninstall Node.js  
Python 2.7.17 is installed. C:\Python27  
A local disc Q has been installed and remains????  
Cygwin64 is also installed C:\cygwin64  
Build tools are installed C:\Users\Dell.windows-build-tools  
C:\Users\Dell.node-red is now deleted, as all folders are empty  
open firefox browser  
open up [https://nodered.org/](https://nodered.org/)  
Get Sarted Button  
Run Locally Option/getting started  
Running Locally(installing Node Red on your local computer)  
If you are using Windows, do not start the command with sudo.  
More information about installing Node-RED on Windows can be found here.  
Click on here button  
It is recommended to use PowerShell  
goto Node.js homepage  
download 12.16.1  
windows explorer open up downloads folder  
install node-v12.16.1-desktop-amd64  
tick box for auto install of tools and chocolatery  
click finish  
Cmd screen hit any key to continue  
this opens up Administrator power shell  
the poweshell provides  
WARNING: It's very likely you will need to close and reopen your shell  
before you can use choco.  
and  
WARNING: You can safely ignore errors related to missing log files when  
upgrading from a version of Chocolatey less than 0.9.9.  
'Batch file could not be found' is also safe to ignore.  
'The system cannot find the file specified' - also safe.  
WARNING: Not setting tab completion: Profile file does not exist at  
'C:\Users\Dell\Documents\WindowsPowerShell\Microsoft.PowerShell\_profile.ps1'.  
and  
Chocolatey upgraded 0/2 packages.  
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).  
touch keyboard and administrator powershell closes.  
back to firefox  
[Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows)

Using Powershell: node --version; npm --version  
{{{i have previously used administrator powershell as well at  
this point to see if the install worked}}}  
so onto powershell  
insert/paste the following: node --version; npm --version  
this returns  
v12.16.1  
6.13.4  
onto the powershell  
PS C:\> node-red  
25 Feb 18:47:23 - [info]

# Welcome to Node-RED

25 Feb 18:47:23 - [info] Node-RED version: v1.0.3  
25 Feb 18:47:23 - [info] Node.js version: v12.16.1  
25 Feb 18:47:23 - [info] Windows\_NT 10.0.18363 x64 LE  
25 Feb 18:47:25 - [info] Loading palette nodes  
25 Feb 18:47:26 - [error] Failed to start server:  
25 Feb 18:47:26 - [error] TypeError: Cannot read property 'forEach' of undefined  
at Object.addModule (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\registry.js:186:27)  
at C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\loader.js:108:30  
at tryCatchReject (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\makePromise.js:845:30)  
at runContinuation1 (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\makePromise.js:804:4)  
at Fulfilled.when (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\makePromise.js:592:4)  
at Pending.run (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\makePromise.js:483:13)  
at Scheduler.\_drain (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\Scheduler.js:62:19)  
at Scheduler.drain (C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules\when\lib\Scheduler.js:27:9)  
at processTicksAndRejections (internal/process/task\_queues.js:79:11)

in the task scheduler library :-

node red start up / Ready / At system startup / created 24/02/20

firewall and security off

127.0.0.1:1880 / localhost:1880 unable to connect

Installing Node.js Windows Build Tools

goto powershell as an Administrator:

npm install --global --production windows-build-tools

this returns

l --production windows-build-tools  
npm : npm WARN deprecated request@2.88.2: request has been deprecated, s  
ee [https://github.com/request/request/issues/3142](https://github.com/request/request/issues/3142)  
At line:1 char:1

- npm install --global --production windows-build-tools
- 

```auto
  + CategoryInfo : NotSpecified: (npm WARN deprec...est/issues/3142:String) [], RemoteException
  + FullyQualifiedErrorId : NativeCommandError

```

> windows-build-tools@5.2.2 postinstall C:\Users\Dell\AppData\Roaming\npm\node\_modules\windows-build-tools  
> node ./dist/index.js

Downloading vs\_BuildTools.exe  
[\>] 0.0% (0 B/s)  
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading vs\_BuildTools.exe  
[\>] 0.0% (0 B/s)  
Downloaded vs\_BuildTools.exe. Saved to C:\Users\Dell.windows-build-tools\vs\_BuildTools.exe.

Starting installation...  
Launched installers, now waiting for them to finish.  
This will likely take some time - please be patient!

## Status from the installers: ---------- Visual Studio Build Tools ---------- Still waiting for installer log file... ------------------- Python -------------------- Python 2.7.17 is already installed, not installing again.e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0K---------- Visual Studio Build Tools --------

Successfully installed Visual Studio Build Tools.  
------------------- Python --------------------  
Python 2.7.17 is already installed, not installing again.

Now configuring the Visual Studio Build Tools..

All done!

- windows-build-tools@5.2.2  
updated 2 packages in 21.4s  
closing admin powershell and opening powershell  
no change with program status

been going round and round this for a few days now varying anything that might change the  
install failure.

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [25 February 2020 21:03 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/25 "2020-02-25T21:03:58Z")

</div>

> [@dougcr4](#):
>
> error] Failed to start s

I was getting the same results from anywhere on the c drive directory

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [25 February 2020 21:06 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/26 "2020-02-25T21:06:43Z")

</div>

I also have ran this issue on both powershell and powershell ISEwith user and administrator privaledges, just to see if ths was the answer

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [25 February 2020 21:21 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/27 "2020-02-25T21:21:37Z")

</div>

Where do you get these instructions from?

[https://nodered.org/docs/getting-started/local](https://nodered.org/docs/getting-started/local)

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [25 February 2020 22:03 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/28 "2020-02-25T22:03:51Z")

</div>

that was the info url

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [26 February 2020 06:03 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/29 "2020-02-26T06:03:54Z")

</div>

Perhaps because your story is barely readable.

Where did you do `npm install -g --unsafe-perm node-red` ?

---

<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:** [26 February 2020 08:05 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/30 "2020-02-26T08:05:02Z")

</div>

This is also being discussed here: [Windows 10 [error] Failed to start server: [error] TypeError: Cannot read property](https://discourse.nodered.org/t/windows-10-error-failed-to-start-server-error-typeerror-cannot-read-property/18600/9)

Given this topic is no longer about the IKEA Dimmer node, please use that other thread for the more general windows install issue.

---

<div class="post-metadata">

**Author:** ![dougcr4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougcr4/32/17406_2.png) [@dougcr4](https://discourse.nodered.org/u/dougcr4)\
**Post date:** [26 February 2020 22:42 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/31 "2020-02-26T22:42:04Z")

</div>

Running windows note:  
Note : Some of the following instructions mention the "command prompt".  
Where this is used, it refers to either the Windows cmd or PowerShell  
terminal shells. It is recommended to use PowerShell on all newer versions  
of Windows as this gives you access to commands and folder names that are  
closer to those of Linux/Mac.  
As far my as experience with node red stretches to, this note should be ammended.

It is recommended to use PowerShell on all newer versions  
of Windows, but when its essential to use the command prompt  
this should be highlighted  
Q what powershell and with std or admin rights is not defined  
Q Powershell  
or Powershell ISE  
or powershell ISE (x86)  
however its best not to use powershell instead of  
CMD, for the entire install.  
If you are not using the windows task scheduler to start node-red  
using the Powershell wont start Node-Red its only aceptable if I use the cmd window.

---

<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:** [26 April 2020 22:51 UTC](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167/32 "2020-04-26T22:51:36Z")

</div>

Closed on 26 April 2020 22:51 UTC

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

[Previous page](https://discourse.nodered.org/t/added-the-ikea-dimmer-to-the-nodes/22167.md?page=1)
