Hello, team!
i install the n8n locally via npm with command “npm install n8n -g”
but when i starting it with n8n command or n8n start it gives me error
Error: Command “start” not found
i install the n8n locally via npm with command “npm install n8n -g”
but when i starting it with n8n command or n8n start it gives me error
Error: Command “start” not found
Welcome to the N8n community @136838906
The start
command is no longer used in the latest versions, the newer versions have simplified the command. Now, you just type n8n
and it automatically starts the server.
Hope this helps
Thanks for the reply! I’m now directly using the command “n8n”
instead of “n8n start" nor "start"
, but I’m still getting the same error.
That means the global npm installation didn’t set up the path correctly
Do this
Find where n8n was installed
```bash
npm list -g n8n
```
Run it directly from the installation path, the path will be shown from the command above.
```bash
# Example for macOS/Linux
/usr/local/bin/n8n
# Example for Windows
C:\Users\YourUsername\AppData\Roaming\npm\n8n.cmd
```
This is really strange—I followed your instructions exactly, but I’m still getting the same error, as shown in the screenshot below. Did I make a mistake in my operation?
Look for the installation path. It’s usually something like:
C:\Users\YourUsername\AppData\Roaming\npm\node_modules\n8n
Run this command to see where the n8n
files are actually stored:
bash npm list -g --depth=0
Use the path you found to run the main file:
bash cd C:\Users\JJ\AppData\Roaming\npm\node_modules\n8n node bin\n8n
If this still doesn’t work, then reinstall n8n