We've published Node-RED 1.2.2.
This fixes the reported issue with the 'Restart Flows' deploy option.
It also improves the 'recovered nodes' handling to cover more scenarios where a node's z
property is invalid.
We've published Node-RED 1.2.2.
This fixes the reported issue with the 'Restart Flows' deploy option.
It also improves the 'recovered nodes' handling to cover more scenarios where a node's z
property is invalid.
Hi ,
i have problem to install palette, first palette (node-red-dashboard 2.23.4) install , but from second i have problem (node-red-contrib-s7 2.2.1).
This is my log:
Thanks
-----------------------------------------------------------
2020-10-21T06:08:47.167Z Install : node-red-dashboard 2.23.4
2020-10-21T06:08:47.586Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-dashboard@2.23.4
2020-10-21T06:09:03.369Z [out]
2020-10-21T06:09:03.369Z [out] added 84 packages in 16s
2020-10-21T06:09:03.378Z rc=0
-----------------------------------------------------------
2020-10-21T06:09:12.957Z Install : node-red-contrib-s7 2.2.1
2020-10-21T06:09:13.374Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-s7@2.2.1
2020-10-21T06:09:13.800Z [err] npm
2020-10-21T06:09:13.801Z [err]
2020-10-21T06:09:13.801Z [err] ERR!
2020-10-21T06:09:13.801Z [err]
2020-10-21T06:09:13.801Z [err] code
2020-10-21T06:09:13.802Z [err] EINVALIDTAGNAME
2020-10-21T06:09:13.802Z [err] npm
2020-10-21T06:09:13.802Z [err]
2020-10-21T06:09:13.802Z [err] ERR!
2020-10-21T06:09:13.802Z [err] Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
2020-10-21T06:09:13.851Z [err]
2020-10-21T06:09:13.852Z [err] npm
2020-10-21T06:09:13.852Z [err]
2020-10-21T06:09:13.852Z [err] ERR!
2020-10-21T06:09:13.852Z [err] A complete log of this run can be found in:
2020-10-21T06:09:13.852Z [err] npm
2020-10-21T06:09:13.852Z [err]
2020-10-21T06:09:13.853Z [err] ERR!
2020-10-21T06:09:13.853Z [err] /mnt/dietpi_userdata/node-red/.npm/_logs/2020-10-21T06_09_13_803Z-debug.log
2020-10-21T06:09:13.857Z rc=1
Hi @mspacca, Welcome to the forum. That is an odd error. What version of node.js and npm are you using? Run node -v
and npm -v
to find out.
Hi, thanks.
Node v15.0.0
Npm v7.0.2
We have not tested Node-RED with Node 15 - and in this case, npm 7, both of which were only released a few days ago. It looks like some change in npm 7 has broken this.
We recommend using Node-RED with an LTS release of node - either 12 or 14 - and the version of npm that comes with them.
Ok,
i will try to downgrade npm and node, i will search command in web...
Thanks a lot, i will send you feedback
If you want help with that tell us what OS you are running on and how you installed nodejs and node-red. After you downgrade you must re-install node-red itself and also go to your .node-red folder and run
npm rebuild
Just a big thumb's up to you and the team, great work.
Don't know if this you full time job or not, but you all appear to be up 24-7.
Keep it going
I will try to do my bit, but have to share this with my 'real' job
I have installed Dietpi October 2020 (version 6.33), and installed node , npm and node-red with menu software .
Sorry, don't know anything about Dietpi. I am not sure many here do.
OK,
downgraded to v12.19.0 and palette installation work fine..
Thanks
I'm now less certain this is an npm 7 issue.
I've just installed Node 15/npm 7 and run the exact same two npm install commands you shared from the log - and it has worked fine.
I'm not 100% sure where the node-red user directory is on a dietpi install - it isn't one we are involved with. Its normally ~/.node-red
- If you can check the log when node-red starts up it will tell you.
You could then try manually installing the s7
node, by changing to that directory and running:
npm install node-red-contrib-s7
If that works, then restart Node-RED to load the new node.
If it fails with the same error as you shared originally, then try deleting the package-lock.json
file in that directory and try again.
This is the user directory in dietpi, i have tried launching here the command npm install node-red-contrib-s7
but have same error.
Deleting package-lock.json
also not work .
can you share the latest error log from the manual command npm i node-red-contrib-s7
in that directory
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '--no-audit',
0 verbose cli '--no-update-notifier',
0 verbose cli '--no-fund',
0 verbose cli '--save',
0 verbose cli '--save-prefix="~"',
0 verbose cli '--production',
0 verbose cli 'node-red-contrib-s7comm@1.1.6'
0 verbose cli ]
1 info using npm@7.0.2
2 info using node@v15.0.0
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 0ms
6 timing config:load:cli Completed in 6ms
7 timing config:load:env Completed in 0ms
8 timing config:load:project Completed in 1ms
9 timing config:load:file:/mnt/dietpi_userdata/node-red/.npmrc Completed in 0ms
10 timing config:load:user Completed in 0ms
11 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
12 timing config:load:global Completed in 1ms
13 timing config:load:cafile Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:setUserAgent Completed in 1ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 12ms
18 verbose npm-session 226fc5ea13089fb8
19 timing npm:load Completed in 21ms
20 timing arborist:ctor Completed in 1ms
21 timing arborist:ctor Completed in 0ms
22 timing idealTree:init Completed in 351ms
23 timing idealTree:userRequests Completed in 2ms
24 silly idealTree buildDeps
25 timing idealTree Completed in 355ms
26 timing command:install Completed in 360ms
27 verbose stack Error: Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
27 verbose stack at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:91:15)
27 verbose stack at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296:13)
27 verbose stack at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:81:12)
27 verbose stack at Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:798:22)
27 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:760:36)
27 verbose stack at Arborist.[buildDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:618:31)
27 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:202:29)
27 verbose stack at async Promise.all (index 1)
27 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
27 verbose stack at async install (/usr/local/lib/node_modules/npm/lib/install.js:40:5)
28 verbose cwd /mnt/dietpi_userdata/node-red
29 verbose Linux 4.19.0-12-amd64
30 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=\"~\"" "--production" "node-red-contrib-s7comm@1.1.6"
31 verbose node v15.0.0
32 verbose npm v7.0.2
33 error code EINVALIDTAGNAME
34 error Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
35 verbose exit 1
I used node-red-contrib-s7comm
but issue is the same with node-red-contrib-s7
because this is already installed correctly with versione v12.19.0.
Where is line 30 coming from ? are you using the UI to install or command line ?
(and line 1 and 2 still indicate node 15 and npm 7....)
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'i',
0 verbose cli 'node-red-contrib-s7comm'
0 verbose cli ]
1 info using npm@7.0.2
2 info using node@v15.0.0
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/mnt/dietpi_userdata/node-red/.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/root/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 7ms
19 verbose npm-session 4ba634e3b2363290
20 timing npm:load Completed in 19ms
21 timing arborist:ctor Completed in 1ms
22 timing arborist:ctor Completed in 1ms
23 timing idealTree:init Completed in 302ms
24 timing idealTree:userRequests Completed in 1ms
25 silly idealTree buildDeps
26 timing idealTree Completed in 305ms
27 timing command:install Completed in 310ms
28 verbose stack Error: Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
28 verbose stack at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:91:15)
28 verbose stack at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296:13)
28 verbose stack at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:81:12)
28 verbose stack at Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:798:22)
28 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:760:36)
28 verbose stack at Arborist.[buildDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:618:31)
28 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:202:29)
28 verbose stack at async Promise.all (index 1)
28 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
28 verbose stack at async install (/usr/local/lib/node_modules/npm/lib/install.js:40:5)
29 verbose cwd /mnt/dietpi_userdata/node-red
30 verbose Linux 4.19.0-12-amd64
31 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "node-red-contrib-s7comm"
32 verbose node v15.0.0
33 verbose npm v7.0.2
34 error code EINVALIDTAGNAME
35 error Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
36 verbose exit 1
Sorry i wrong to copy log,
Yes i have reinstalled v15 and v7 to retry this issue... with version v12 work fine..
Hi @mspacca
this is definitely due to a change made in npm 7.
What other modules have you got installed for node-red-dashboard?
For hotly debated reasons, they have chosen that npm 7 will now start to automatically install peerDependencies
- where they were previously ignored. This is going to cause endless problems for modules in our ecosystem.
My theory is you have a module installed that lists node-red-dashboard
as a peerDependency, but its version string is not valid. This is ignored by npm <7, but now npm 7 will complain.
well the version string should be fine as the peer-dependency will want to be able to express greater than a certain level of peer etc... but yes - is broken as-is.
What is odd here is that the peer dep looks like the dashboard 2.23.4 which is very new to be a dependency of any other node... so it must be coming from either the generated local package.json or package-lock.json.