Does Palette Manager work in Windows

I've done a clean install of version 3.0.2 in Windows and edited the config file but still I get 'npm command not found' for the palette manager. Is it possible to install it retrospectively?

How did you install node-red, and in particular how did you install nodejs? Did you follow the instructions in the docs? That should have installed npm I think.
https://nodered.org/docs/getting-started/windows

Also, what config file have you edited and what did you change?

I installed node-red following the instructions in a standard install of node js. it sits within a users files within windows.
node: v16.14.2
npm: 8.5.0

The startup log states:

30 Aug 14:17:19 - [info] Node-RED version: v3.0.2
30 Aug 14:17:19 - [info] Node.js version: v16.14.2
30 Aug 14:17:19 - [info] Windows_NT 10.0.19042 x64 LE
30 Aug 14:17:19 - [info] Palette editor disabled : npm command not found
30 Aug 14:17:19 - [info] Loading palette nodes
30 Aug 14:17:20 - [info] Dashboard version 3.1.7 started at /ui
30 Aug 14:17:20 - [info] Settings file : C:\Users\xxxxpb.node-red\settings.js
30 Aug 14:17:20 - [info] Context store : 'default' [module=memory]
30 Aug 14:17:20 - [info] User directory : C:\Users\xxxxpb.node-red
30 Aug 14:17:20 - [warn] Projects disabled : editorTheme.projects.enabled=false
30 Aug 14:17:20 - [info] Flows file : C:\Users\syspjb.node-red\flows.json
30 Aug 14:17:20 - [info] Server now running at http://127.0.0.1:1880/
30 Aug 14:17:20 - [warn]

the settings.js file in the log is the one which has been edited to enable Palette Manager

the real path to this is:

C:\Users\xxxxpb\AppData\Roaming\npm\node_modules\node-red\config.js

In a command window (wherever you run node-red), does running command npm work?

npm is installed alongside node.js these days and should be on your path.

@knolleary does that make sense to you? I don't know what it is talking about.

No, the settings file listed in the log is the real (and only) settings file you should edit.
in your case C:\Users\xxxxpb\.node-red\settings.js

It is possible you have not restarted windows after installing nodejs. Or something happened to prevent npm being added to the system path.

Try restarting your computer.

If that doesnt work, try re-installing nodejs & restart after installation.

Failing that, manually add the path to npm in your env settings - here is some info: node.js - Fixing npm path in Windows 8 and 10 - Stack Overflow

Also why was it necessary to edit it to enable palette manager? It is enabled by default.

There is a Path entry for npm, it can be run from anywhere except the path in which I run node-red (C:\Users\xxxxpb\AppData\Roaming\npm) where:
Error: Cannot find module 'C:\Users\xxxxpb\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'

Thanks for your help. I reinstalled node, npm and node-red which seemed to cure the problem.

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