StarfallProjects / n8n-nodes-powershell

This is a custom node for n8n. It allows you to execute PowerShell commands within an n8n workflow.
https://www.npmjs.com/package/@starfallprojects/n8n-nodes-powershell
MIT License
6 stars 2 forks source link

Remove .exe so PowerShell Core works on Linux (and in n8n Docker) #1

Closed per-oestergaard closed 1 year ago

per-oestergaard commented 1 year ago

Remove .exe so PowerShell Core works on Linux (and in n8n Docker). Windows do not care about the missing .exe as it does not by default have any file like .cmd that would be called first.

Tips: If you want to test it without building you own docker image from docker.n8n.io/n8nio/n8n, exec into the running docker and install PowerShell -


# Install PowerShell (remember you have to build your own docker as this is only temporary)
apk add powershell

To make this custom node work before this is being merged -

# Create a .exe path
ln -s /usr/bin/pwsh /usr/bin/pwsh.exe
StarfallProjects commented 1 year ago

Thank you for this (and my apologies for the slow response)