Cant get running (win 10)

Hi everyone, I am trying to install n8n , but after 8 hours of installing / trying / searching on the web I am stuck.

i cant get pass this part:

C:\Users\Werner>n8n

Error: Cannot find module '../build/Release/magic'

Require stack:

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/mmmagic/lib/index.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/n8n-core/dist/src/NodeExecuteFunctions.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/n8n-core/dist/src/index.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/dist/commands/start.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/plugin.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/config.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/index.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/command/lib/command.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/command/lib/index.js

- C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/bin/n8n

    at Object.<anonymous> (C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/mmmagic/lib/index.js

could you please help me out?

Thanks in advance!

Welcome to the community @Werner_Oostendorp!

Not a windows user myself but we had quite a few people getting it to run on windows. We have a short troubleshooting guide here:

I does not specifically mention the problem you have but it describes what kind of software has to be installed and how. So maybe if you follow that it also fixes your problem.

hi jan, thanks for your reply. I did all the steps, but without luck :frowning:

Very sorry I also tried to find something online, sadly without luck. As I am not a Windows user myself I can sadly not be of any help here. Hope another community member which also uses windows has an idea what is going on there.

Hey @Werner_Oostendorp,
Let’s see if we can get you up and running! :running_man:

First of all, a few questions…

  1. What version of Windows 10 are you running?
  2. What version of NodeJS are you running?
  3. How was NodeJS installed on your system? By the account you are running? As administrator? Was it installed globally?
  4. Can you confirm that the you have the mmagic NodeJS module installed properly?
  5. If it is installed properly, was it installed as a package or did you have to compile it yourself?
  6. Where is the build/Release/magic folder located on your system? Do you have access to it from a security perspective?
  7. Does it work properly if you run it from the C:\Users\Werner directory using an Administrative Command Prompt, not just the regular Command Prompt?
  8. From the C:\Users\Werner using a Command Prompt (Administrative or otherwise), if you enter the command cd ..\build\Release, what result do you get?

OK. Enough questions for now. Let me know what you find out.

1 Like

Hi Tephlon, thanks for your reply.

  1. What version of Windows 10 are you running?

Windows 10 pro 1909

  1. What version of NodeJS are you running?

v12.16.3

  1. How was NodeJS installed on your system? By the account you are running? As administrator? Was it installed globally?

Using the installer I found online, as admin, but i don’t know what global means

  1. Can you confirm that the you have the mmagic NodeJS module installed properly?

No I can’t, how can I check this?

  1. If it is installed properly, was it installed as a package or did you have to compile it yourself?

Not enough knowledge to give you an answer on this.

  1. Where is the build/Release/magic folder located on your system? Do you have access to it from a security perspective?

I try to search for it but without luck

  1. Does it work properly if you run it from the C:\Users\Werner directory using an Administrative Command Prompt, not just the regular Command Prompt?

What do I need to do?

  1. From the C:\Users\Werner using a Command Prompt (Administrative or otherwise), if you enter the command cd ..\build\Release , what result do you get?

Het systeem kan het opgegeven pad niet vinden. (can’t find the path…)

thanks for your help!

I totaly start over again, and I think its the mmagic module. after installing:

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

but I don’t know what to do…

Try installing the Windows Build Tools and then try again:

I’ll go over your other answers in a bit.

i installed it again, but i am keeping the same ‘error’

Did you install the windows build tools?

Yes, this is what i did:

  1. Installed Node.js via Node.js (version12.16.3 LTS Download for Windows (x64))

  2. Installed Python 2.7 via Python Release Python 2.7.17 | Python.org (version Windows x86-64 MSI installer)

  3. Command (npm install mmmagic) this gives a lot of ERR! messages, see message above;

  4. Command: npm install --global --production windows-build-tools (seems ok to me)

  5. Commands: npm config set python python2.7 & npm config set msvs_version 2017 --global, here I don’t see anything happen.

  6. Now when I try to start n8n, this is what I get:

Require stack:

  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/mmmagic/lib/index.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/n8n-core/dist/src/NodeExecuteFunctions.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/n8n-core/dist/src/index.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/dist/commands/start.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/plugin.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/config.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/config/lib/index.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/command/lib/command.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/@oclif/command/lib/index.js
  • C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/bin/n8n
    at Object. (C:/Users/Werner/AppData/Roaming/npm/node_modules/n8n/node_modules/mmmagic/lib/index.js:1:13)

I believe that the windows-build-tools need to be installed before the mmmagic package as the system doesn’t seem to know where where the precompiled package is and is trying to compile it for your system. In order to do that, it needs to have access to the windows-build-tools first.

I started completely over, but no luck :frowning:
Don’t think this is going to work for me!

But thanks for your time and help! :slight_smile:

Hello there. I was stuck with the same problem for 3 days. I was able to install it and run in an ubuntu VM to confirm that mmmagic package was building in there. Fix it in my Windows 10 host using this command after checking that I can reach the “MSBuild.exe” file.

npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"

Then uninstalling n8n, the build tools package and reinstalling worked for me.

2 Likes

Hey @jethrinfox. Welcome to the community!

Thanks for the insight into how you resolved this issue. It is definitely going to be helpful.