Unable to remove node from palette

@goldriver2 - by the looks of it, you are running that cmd window under a windows account named "bruno"

firstly, it seems (to me) a bit odd to see a node_modules folder directly under the users account home folder. Why is that there?

secondly, what account do you use when running nodered? (is it ran as a service under another user account?)

@Steve-Mcl the user used to run node-red as a service is "serveur-2" and its home directory is c:\users\bruno

@knolleary here is the complete .config.nodes.json content regarding node-red-node-google

"node-red-node-google": {
"name": "node-red-node-google",
"version": "0.2.2",
"local": false,
"nodes": {
"google plus": {
"name": "google plus",
"types": [
"google plus"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\plus.js"
},
"google places": {
"name": "google places",
"types": [
"google places"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\places.js"
},
"google-api-config": {
"name": "google-api-config",
"types": [
"google-credentials",
"google-api-config"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\google.js"
},
"google geocoding": {
"name": "google geocoding",
"types": [
"google geocoding"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\geocoding.js"
},
"google directions": {
"name": "google directions",
"types": [
"google directions"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\directions.js"
},
"google calendar": {
"name": "google calendar",
"types": [
"google calendar in",
"google calendar",
"google calendar out"
],
"enabled": false,
"local": false,
"module": "node-red-node-google",
"file": "C:\Users\bruno\node_modules\node-red-node-google\calendar.js"
}
}
},

@goldriver2 okay - so that tells us Node-RED is loading the module from:

C:\Users\bruno\node_modules\node-red-node-google\

Does that path exist?

If the path does not exist, can you stop node-red then start it in a terminal and post the full log here (copy/paste please, not screenshot). Use the </> button at the top of the forum entry window when pasting it in.

@Colin here is the log after a restart

C:\Users\bruno>node-red
7 Dec 17:02:11 - [info]

Welcome to Node-RED
===================

7 Dec 17:02:11 - [info] Node-RED version: v1.2.3
7 Dec 17:02:11 - [info] Node.js  version: v12.18.3
7 Dec 17:02:11 - [info] Windows_NT 10.0.19041 x64 LE
7 Dec 17:02:11 - [info] Loading palette nodes
7 Dec 17:02:13 - [info] Settings file  : C:\Users\bruno\.node-red\settings.js
7 Dec 17:02:13 - [info] Context store  : 'default' [module=memory]
7 Dec 17:02:13 - [info] User directory : \Users\bruno\.node-red
7 Dec 17:02:13 - [warn] Projects disabled : editorTheme.projects.enabled=false
7 Dec 17:02:13 - [info] Flows file     : \Users\bruno\.node-red\flows_serveur-2.json
7 Dec 17:02:13 - [info] Server now running at http://127.0.0.1:XXXX/
7 Dec 17:02:13 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

7 Dec 17:02:13 - [info] Starting flows
7 Dec 17:02:13 - [info] SonosPollyTTS: TTS cache set to \Users\bruno\.node-red\sonospollyttsstorage\ttsfiles
7 Dec 17:02:13 - [info] SonosPollyTTS: hailing path set to \Users\bruno\.node-red\sonospollyttsstorage\hailingpermanentfiles
7 Dec 17:02:13 - [info] SonosPollyTTS: permanent files path set to \Users\bruno\.node-red\sonospollyttsstorage\ttspermanentfiles
7 Dec 17:02:13 - [info] SonosPollyTTS-config: Node-Red node.js Endpoint will be created here: http://XXX.XXX.X.XX:XXX/tts
7 Dec 17:02:13 - [info] nora (WBTeg): connecting
7 Dec 17:02:13 - [info] Started flows
7 Dec 17:02:13 - [info] [mqtt-broker:serveur mqtt goldriver] Connected to broker: mqtt://localhost:XXXX
7 Dec 17:02:13 - [info] SonosPollyTTS: ZONE COORDINATOR "Cuisine"
7 Dec 17:02:16 - [warn] nora (WBTeg): socket connection error: not authorized
7 Dec 17:02:16 - [info] nora (WBTeg): close connection
7 Dec 17:02:16 - [warn] nora (WBTeg): reconnecting in 21.5 sec

I suggest upgrading to the latest node-red, just in case, but I wouldn't expect that to help.
Otherwise, unless someone else has an idea I suggest deleting (or renaming) C:\Users\bruno\node_modules, you shouldn't be installing modules there anyway, unless you have a particular reason for doing that. Then also delete or rename C:\Users\bruno\.node-red\node_modules. Then to reinstall what should be there go to the .node-red folder and run npm install and check for errors (look at the end of the output to see if it ends saying lots of nodes installed, or if it ends with an error).
Then restart node-red.

1 Like

@Colin That did the trick, I was afraid to loose everythnig but I am back on my feet

Thank you all for this

1 Like

Was it upgrading node red or removing node modules that did it?

removing node_modules

Than you for using my node. Appreciate that.

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