Issue with Installing Nodes since update to 4.0.1
dekatWin opened this issue · 11 comments
Bug:
After updating to version 4.0.1, NodeRed has been malfunctioning. Although it starts up, I am unable to install extra nodes during startup. I attempted to force installation, but this did not resolve the issue. However, when I reverted back to version 4.0.0, the problem disappeared and everything started working normally.
It seems that version 4.0.1 is somehow broken for me.
Versions:
Adapter Version: : 4.0.1
os : Windows 11
Node.js : v18.12.1
NPM : v8.19.2
Debug Log
2023-03-24 16:34:57.489 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:34:57.501 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:34:57.502 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:34:57.503 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:34:57.505 - �[31merror�[39m: node-red.0 (4924) config
2023-03-24 16:34:57.506 - �[31merror�[39m: node-red.0 (4924) dev Please use --include=dev instead.
2023-03-24 16:34:57.527 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:34:57.550 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:34:57.551 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:34:57.553 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:34:57.553 - �[31merror�[39m: node-red.0 (4924) using --force
2023-03-24 16:34:57.555 - �[31merror�[39m: node-red.0 (4924) Recommended protections disabled.
2023-03-24 16:35:02.207 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.228 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.231 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:02.237 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.263 - �[31merror�[39m: node-red.0 (4924) config
2023-03-24 16:35:02.270 - �[31merror�[39m: node-red.0 (4924) production Use `--omit=dev` instead.
2023-03-24 16:35:02.294 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.304 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.305 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:02.307 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.308 - �[31merror�[39m: node-red.0 (4924) config dev Please use --include=dev instead.
2023-03-24 16:35:02.329 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.332 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.334 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:02.337 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.339 - �[31merror�[39m: node-red.0 (4924) using --force
2023-03-24 16:35:02.340 - �[31merror�[39m: node-red.0 (4924) Recommended protections disabled.
2023-03-24 16:35:02.920 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.924 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.927 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:02.929 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.932 - �[31merror�[39m: node-red.0 (4924) code
2023-03-24 16:35:02.934 - �[31merror�[39m: node-red.0 (4924) EINVAL
2023-03-24 16:35:02.935 - �[31merror�[39m: node-red.0 (4924) npm ERR! path C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save
2023-03-24 16:35:02.941 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.946 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.949 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:02.951 - �[31merror�[39m: node-red.0 (4924) Illegal characters in path.
2023-03-24 16:35:02.960 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.965 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:02.968 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:02.969 - �[31merror�[39m: node-red.0 (4924) ERR! A complete log of this run can be found in:
npm ERR!
2023-03-24 16:35:02.971 - �[31merror�[39m: node-red.0 (4924) C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs\2023-03-24T15_35_02_072Z-debug-0.log
2023-03-24 16:35:03.006 - �[31merror�[39m: node-red.0 (4924) Cannot install node-red-contrib-whatsapp-cmb: 1
2023-03-24 16:35:04.265 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:04.270 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:04.271 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:04.272 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:04.273 - �[31merror�[39m: node-red.0 (4924) config
2023-03-24 16:35:04.275 - �[31merror�[39m: node-red.0 (4924) dev Please use --include=dev instead.
2023-03-24 16:35:04.296 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:04.297 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:04.299 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:04.300 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:04.300 - �[31merror�[39m: node-red.0 (4924) using --force
2023-03-24 16:35:04.301 - �[31merror�[39m: node-red.0 (4924) Recommended protections disabled.
2023-03-24 16:35:05.998 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.003 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.005 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:06.008 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.012 - �[31merror�[39m: node-red.0 (4924) config
2023-03-24 16:35:06.015 - �[31merror�[39m: node-red.0 (4924) production Use `--omit=dev` instead.
2023-03-24 16:35:06.017 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.018 - �[31merror�[39m: node-red.0 (4924) WARN config dev Please use --include=dev instead.
2023-03-24 16:35:06.037 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.039 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.043 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:06.045 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.048 - �[31merror�[39m: node-red.0 (4924) using --force
2023-03-24 16:35:06.051 - �[31merror�[39m: node-red.0 (4924) Recommended protections disabled.
2023-03-24 16:35:06.712 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.712 - �[31merror�[39m: node-red.0 (4924) ERR! code EINVAL
2023-03-24 16:35:06.715 - �[31merror�[39m: node-red.0 (4924) npm ERR!
2023-03-24 16:35:06.716 - �[31merror�[39m: node-red.0 (4924) path C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save
2023-03-24 16:35:06.721 - �[31merror�[39m: node-red.0 (4924) npm ERR! Illegal characters in path.
2023-03-24 16:35:06.727 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.731 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.736 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.739 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:06.741 - �[31merror�[39m: node-red.0 (4924) A complete log of this run can be found in:
2023-03-24 16:35:06.743 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:06.746 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:06.746 - �[31merror�[39m: node-red.0 (4924) ERR! C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs\2023-03-24T15_35_05_908Z-debug-0.log
2023-03-24 16:35:06.791 - �[31merror�[39m: node-red.0 (4924) Cannot install node-red-contrib-whatsapp-cmb: 1
2023-03-24 16:35:09.025 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:09.029 - �[31merror�[39m: node-red.0 (4924) WARN config
2023-03-24 16:35:09.029 - �[31merror�[39m: node-red.0 (4924) dev Please use --include=dev instead.
2023-03-24 16:35:09.047 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:09.050 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:09.053 - �[31merror�[39m: node-red.0 (4924) WARN
2023-03-24 16:35:09.055 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:09.057 - �[31merror�[39m: node-red.0 (4924) using --force
2023-03-24 16:35:09.059 - �[31merror�[39m: node-red.0 (4924) Recommended protections disabled.
2023-03-24 16:35:10.602 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.603 - �[31merror�[39m: node-red.0 (4924) WARN config production Use `--omit=dev` instead.
npm WARN config dev Please use --include=dev instead.
2023-03-24 16:35:10.617 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.617 - �[31merror�[39m: node-red.0 (4924) WARN using --force Recommended protections disabled.
2023-03-24 16:35:10.906 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.907 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.907 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:10.908 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.910 - �[31merror�[39m: node-red.0 (4924) code
2023-03-24 16:35:10.911 - �[31merror�[39m: node-red.0 (4924) EINVAL
2023-03-24 16:35:10.912 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.913 - �[31merror�[39m: node-red.0 (4924) ERR! path C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save
2023-03-24 16:35:10.918 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.920 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.921 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:10.922 - �[31merror�[39m: node-red.0 (4924) Illegal characters in path.
2023-03-24 16:35:10.928 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.929 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.930 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.930 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:10.930 - �[31merror�[39m: node-red.0 (4924) A complete log of this run can be found in:
2023-03-24 16:35:10.931 - �[31merror�[39m: node-red.0 (4924) npm
2023-03-24 16:35:10.932 - �[31merror�[39m: node-red.0 (4924)
2023-03-24 16:35:10.934 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:10.935 - �[31merror�[39m: node-red.0 (4924) C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs\2023-03-24T15_35_10_495Z-debug-0.log
2023-03-24 16:35:10.970 - �[31merror�[39m: node-red.0 (4924) Cannot install node-red-contrib-whatsapp-cmb: 1
2023-03-24 16:35:10.971 - �[31merror�[39m: node-red.0 (4924) Cannot install npm packet: node-red-contrib-whatsapp-cmb
2023-03-24 16:35:10.990 - �[33mwarn�[39m: node-red.0 (4924) Cannot enable the dynamic object read as admin has authentication
2023-03-24 16:35:21.671 - �[33mwarn�[39m: node-red.0 (4924) 24 Mar 16:35:21 - [warn] Projects disabled : editorTheme.projects.enabled=false
What do the linked Logfiles state? In fact npm states an error and con not install it ...
Thx for you help.
Than why is it working fine with 4.0.0 ?
2023-03-24 16:35:02.949 - �[31merror�[39m: node-red.0 (4924) ERR!
2023-03-24 16:35:02.951 - �[31merror�[39m: node-red.0 (4924) Illegal characters in path.
I would assume that there is something wrong with the path or the way the logic works with the path. since 4.0.1
Vielleicht ist das wieder so eine Windows Sache, wo das Format vom Windows Path nicht richtig erkannt wird. Wenn es dir nichts ausmacht, würde ich gerne auf Deutsch wechseln, Englisch ist wirklich nicht meine Stärke.
Ja was genau steht denn in C:\Users\Mini-Pc\AppData\Local\npm-cache_logs\2023-03-24T15_35_10_495Z-debug-0.log als beispiel, nur so finden wir raus was los ist.
Und wo genau kommt jetzt das Illegal characters her? Bitte vollständige Logs posten
sry, vorhin war ich etwas verwirrt. In dem vollständigen iobroker Log, den ich im ersten Beitrag geteilt habe, stand das mit dem Illegal characters drin.
Hier ist das vollständige Log von: C:\Users\Mini-Pc\AppData\Local\npm-cache_logs\2023-03-24T15_35_10_495Z-debug-0.log
0 verbose cli C:\Program Files\iobroker\BigBoss\nodejs\node.exe C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@8.19.2
2 info using node@v18.12.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\npmrc Completed in 30ms
6 timing config:load:builtin Completed in 31ms
7 warn config production Use `--omit=dev` instead.
8 timing config:load:cli Completed in 5ms
9 timing config:load:env Completed in 2ms
10 timing config:load:file:C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save\.npmrc Completed in 6ms
11 timing config:load:project Completed in 7ms
12 warn config dev Please use --include=dev instead.
13 timing config:load:file:C:\Users\Mini-Pc\.npmrc Completed in 6ms
14 timing config:load:user Completed in 6ms
15 timing config:load:file:C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save\etc\npmrc Completed in 0ms
16 timing config:load:global Completed in 0ms
17 timing config:load:validate Completed in 0ms
18 timing config:load:credentials Completed in 1ms
19 timing config:load:setEnvs Completed in 2ms
20 timing config:load Completed in 59ms
21 timing npm:load:configload Completed in 60ms
22 timing npm:load:mkdirpcache Completed in 1ms
23 timing npm:load:mkdirplogs Completed in 1ms
24 verbose title npm install node-red-contrib-whatsapp-cmb
25 verbose argv "install" "node-red-contrib-whatsapp-cmb" "--production" "--prefix" "C:\\Program Files\\iobroker\\BigBoss\\iobroker-data\\node-red\" --save"
26 timing npm:load:setTitle Completed in 2ms
27 timing config:load:flatten Completed in 6ms
28 timing npm:load:display Completed in 10ms
29 verbose logfile logs-max:10 dir:C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs
30 verbose logfile C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs\2023-03-24T15_35_10_495Z-debug-0.log
31 timing npm:load:logFile Completed in 12ms
32 timing npm:load:timers Completed in 0ms
33 timing npm:load:configScope Completed in 0ms
34 warn using --force Recommended protections disabled.
35 timing npm:load Completed in 90ms
36 timing arborist:ctor Completed in 2ms
37 timing command:install Completed in 7ms
38 verbose stack Error: Illegal characters in path.
38 verbose stack at pathArg (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\node_modules\mkdirp\lib\path-arg.js:20:27)
38 verbose stack at mkdirp (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\node_modules\mkdirp\index.js:10:10)
38 verbose stack at [validatePath] (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:175:11)
38 verbose stack at Arborist.reify (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:152:30)
38 verbose stack at Install.exec (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\lib\commands\install.js:145:15)
38 verbose stack at Npm.exec (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\lib\npm.js:169:29)
38 verbose stack at async module.exports (C:\Program Files\iobroker\BigBoss\nodejs\node_modules\npm\lib\cli.js:78:5)
39 verbose cwd C:\Program Files\iobroker\BigBoss\node_modules\iobroker.node-red
40 verbose Windows_NT 10.0.22621
41 verbose node v18.12.1
42 verbose npm v8.19.2
43 error code EINVAL
44 error path C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save
45 error Illegal characters in path.
46 verbose exit 1
47 timing npm Completed in 423ms
48 verbose unfinished npm timer reify 1679672110891
49 verbose code 1
50 error A complete log of this run can be found in:
50 error C:\Users\Mini-Pc\AppData\Local\npm-cache\_logs\2023-03-24T15_35_10_495Z-debug-0.log
Ist das der richtige Log?
Vielleicht liegt es am extra "
am Ende des Pfads: C:\Program Files\iobroker\BigBoss\iobroker-data\node-red" --save
Ich hab jedoch keine Ahnung wie das da rein gekommen ist.
Ne das liegt wenn an dem einzelnen "" am ende, das müsten zwei sein. ich schaue nachher mal
Danke 👍
Bitte die 4.0.3 versuchen die gerade auf dem Weg ist (bzw GitHub hätte es schon)
super, 4.0.3 geht, der Bug ist gefixed. vielen dank.
Was macht eigentlich der neue Security mode? bzw, die Security Auswahl in den Adapter Einstellungen?
Da ich kein node-red nutzer bin keine AHnung. Bitte details in eigem Github issue sagen