I have n8n installed on my Windows 10 and 11 machines. When I stop the service and run the update command, it sits there for a few seconds and nothing happens. But if I run the install command with a specific build, it works fine. I have been doing this for a few builds now and the update command has never worked for me. Every time I run the install command it resets all my config settings. Any help would be greatly appreciated.
I’m not a Windows user. So, I don’t know what is happening. But I feel setting up with Docker is the best option Or try n8n desktop (Announcing the n8n desktop app)
Hi @Suratwala, I am sorry to hear you’re running into this issue.
Could you share some additional details here? What exactly is happening for you when saying the install resets all your config settings? Would it delete the .n8n\config file in your home directory?
As for the problem you are having with npm update I’m not sure it’s directly related to n8n tbh. In the npmjs registry, version 0.151.0 would have the latest tag as expected. Can you confirm which n8n versions npm outdated -g --depth=0 prints for you and what npm update -g -dd n8n returns on your machine (the -dd would set the log level to verbose)?
Also, is the behaviour the same for you when using the regular command prompt or MS PowerShell (I’m wondering if the environment in the prompt you are currently using might have something to do with this)?
The config reset part was for when I used the install command to install the latest build as the update command does not work. I ran the commands that you suggested using cmd, cmd as administrator, PowerShell, and Node.js command prompt and got the same results:
These are the steps from my notes, if you get stuck at any point, send me the error message and it may jog my memory.
Install Node.js
Run PowersShell as Administrator
Run npm install n8n -g
Update the npm version if available: e.g. npm install -g [email protected]
Run n8n - this will save the config and database.sqlite files to C:\Users\<UNSERNAME>\.n8n folder
If you see an EPERM Error on path C:\Windows\System32\LogFiles\WMI\RtBackup, change the OWNER on ‪C:\Windows\System32\LogFiles\WMI\RtBackup to EVERYONE
Remove Deny permission for Everyone and Add Allow permission for Everyone on C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5
Delete database.sqlite from C:\Users\<USERNAME>\.n8n
Run n8n - if all goes well, this should show a message saying:
Editor is now accessible via:
http://localhost:5678/
index.js in folder C:\Users\<USERNAME>\AppData\Roaming\npm\node_modules\n8n\dist\config contains system config options.
Hello,
thanks for this post. It’s very helpfull!
I have an issue following your steps. Deployment is working and i have my n8n on http://localhost:5678 but when i start my workflow, it going at the end and never stop spinning… No error information on the console log and the workflow is runing well.
Hi @michael75, can you please take a screenshot and post? Have you tried a browser refresh and is it still spinning after that? Could be just a refresh issue. Try another browser or clear cache. Turn on save execution and also monitor the execution to see if it’s really running.
Loom is down for maintenance so I can’t view your video but reading the release notes for the latest build, looks like it might have been a bug: “ * Prevent executions from displaying as running forever”. Try updating to the latest build and see if it fixes it.