# Problem installing module

**URL:** https://discourse.nodered.org/t/problem-installing-module/69123
**Category:** General
**Created:** [16 October 2022 23:07 UTC](https://discourse.nodered.org/t/problem-installing-module/69123 "2022-10-16T23:07:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LuisF](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@LuisF](https://discourse.nodered.org/u/LuisF)
#### Post date: [16 October 2022 23:07 UTC](https://discourse.nodered.org/t/problem-installing-module/69123/1 "2022-10-16T23:07:05Z")

</div>

I am trying to intall a module, but the error appears:

2022-10-16T22:24:08.830Z Install : node-red-node-email 1.18.1

2022-10-16T22:24:09.165Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-email@1.18.1  
2022-10-16T22:24:12.572Z [err] npm  
2022-10-16T22:24:12.572Z [err] ERR! Windows\_NT 10.0.22000  
2022-10-16T22:24:12.572Z [err] npm  
2022-10-16T22:24:12.573Z [err] ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Microsoft Windows\AppData\Roaming\npm\node\_modules\npm\bin\npm-cli.js" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=~" "--production" "--engine-strict" "node-red-node-email@1.18.1"  
2022-10-16T22:24:12.574Z [err] npm ERR! node v16.18.0  
2022-10-16T22:24:12.574Z [err] npm ERR! npm v3.10.10  
2022-10-16T22:24:12.575Z [err]  
2022-10-16T22:24:12.576Z [err] npm  
2022-10-16T22:24:12.576Z [err] ERR!  
2022-10-16T22:24:12.577Z [err] cb.apply is not a function  
2022-10-16T22:24:12.577Z [err] npm ERR!  
2022-10-16T22:24:12.577Z [err]  
2022-10-16T22:24:12.577Z [err] npm ERR! If you need help, you may report this error at:  
2022-10-16T22:24:12.577Z [err] npm ERR!  
2022-10-16T22:24:12.577Z [err] [https://github.com/npm/npm/issues](https://github.com/npm/npm/issues)  
2022-10-16T22:24:12.598Z [err]  
2022-10-16T22:24:12.598Z [err] npm ERR! Please include the following file with any support request:  
2022-10-16T22:24:12.598Z [err] npm ERR!  
2022-10-16T22:24:12.598Z [err] C:\Users\Microsoft Windows.node-red\npm-debug.log  
2022-10-16T22:24:12.632Z rc=1

---

<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: [17 October 2022 08:10 UTC](https://discourse.nodered.org/t/problem-installing-module/69123/2 "2022-10-17T08:10:01Z")

</div>

Welcome to the forum @LuisF

> [@LuisF](#):
>
> 2022-10-16T22:24:12.574Z [err] npm ERR! node v16.18.0  
> 2022-10-16T22:24:12.574Z [err] npm ERR! npm v3.10.10

That is a good version of node.js (16.18.0) but with that version of nodejs, npm should be version 8.15 or similar. I don't use Windows so don't know the fix, but I suggest that you start with the node red docs [Installing on Windows](https://nodered.org/docs/getting-started/windows) and see what it says about installing node.js and npm.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [17 October 2022 08:49 UTC](https://discourse.nodered.org/t/problem-installing-module/69123/3 "2022-10-17T08:49:37Z")

</div>

> [@Colin](#):
>
> I don't use Windows so don't know the fix

Not sure why that would get out of step since a Windows install of node.js will install the appropriate npm. I guess it might be possible that you have an old version of npm hanging around somewhere that is being picked up?

If you are using PowerShell, you should be able to do `whereis npm` just like on Linux (if using CMD, then it is `where npm`):

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db949513fbde26b96f39221173782727e88d0db7.png)

If you get anything different to that, please share.

---

<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: [16 December 2022 08:50 UTC](https://discourse.nodered.org/t/problem-installing-module/69123/4 "2022-12-16T08:50:33Z")

</div>

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