TypeError: Cannot read properties of undefined (reading 'manager')

Describe the problem/error/question

Since the latest upgrade to 1.114.3, initializing n8n locally throws following error

What is the error message (if any)?

Initializing n8n process
n8n ready on ::, port 5678
TypeError: Cannot read properties of undefined (reading ‘manager’)
at new InstalledNodesRepository (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\src\modules\community-packages\installed-nodes.repository.ts:9:36)
at ContainerClass.get (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules@n8n\di\src\di.ts:104:16)
at C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules@n8n\di\src\di.ts:97:17
at Array.map ()
at ContainerClass.get (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules@n8n\di\src\di.ts:91:36)
at C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules@n8n\di\src\di.ts:97:17
at Array.map ()
at ContainerClass.get (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules@n8n\di\src\di.ts:91:36)
at Start.init (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\src\commands\base-command.ts:143:20)
at Start.init (C:\Users\aruna\AppData\Local\npm-cache_npx\a8a7eec953f1f314\node_modules\n8n\src\commands\start.ts:202:3)
Exiting due to an error.
Cannot read properties of undefined (reading ‘manager’)

Information on your n8n setup

  • n8n version: 1.114.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Windows 11
2 Likes

having the same problem too

1 Like

I’m having the same issues

1 Like

Facing same issue

Have faced similar issue, and good old:

rm -rf node_modules
rm package-lock.json
npm install

did the trick

note in my case, n8n is installed locally not globally

Same here :frowning:

This worked for me too, thank you for the tip

cp -r node_modules $HOME/node_modules_bak
rm -rf node_modules
rm *lock.json
npm install

in my case ubuntu wsl, launch with npx

worked from this path in the error

~/.npm/_npx/a8a7eec953f1f314/

2 Likes

Worked perfectly for me on MacOS - just make sure that you are in the right directory (~/.npm/_npx/a8a7eec953f1f314/)

Thanks a lot!

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