Problem with node-red-contrib-ui-led not showing in pallete

Hello together,
I would like to export a project and import it on another PC. Unfortunately, a new version of libraries is installed on the second computer, which prevents import. Is it possible to install an older version of the libraries or does someone like another idea? I get the following error message:

2020-08-14T07:10:26.307Z installieren : node-red-contrib-ui-led 0.3.3

2020-08-14T07:10:34.704Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ui-led@0.3.3
2020-08-14T07:10:36.894Z [err] npm
2020-08-14T07:10:36.894Z [err] WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning UNABLE_TO_GET_ISSUER_CERT_LOCALLY: request to https://registry.npmjs.org/node-red-contrib-ui-led failed, reason: unable to get local issuer certificate
2020-08-14T07:10:36.894Z [err] npm
2020-08-14T07:10:36.894Z [err] WARN registry
2020-08-14T07:10:36.894Z [err] Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
2020-08-14T07:10:37.071Z [err] npm ERR!
2020-08-14T07:10:37.071Z [err] code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
2020-08-14T07:10:37.071Z [err] npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
2020-08-14T07:10:37.072Z [err] npm ERR! request to https://registry.npmjs.org/node-red-contrib-ui-led failed, reason: unable to get local issuer certificate
2020-08-14T07:10:37.078Z [err]
2020-08-14T07:10:37.078Z [err] npm
2020-08-14T07:10:37.078Z [err] ERR! A complete log of this run can be found in:
2020-08-14T07:10:37.078Z [err] npm ERR! C:\Users\uhmvcw\AppData\Roaming\npm-cache_logs\2020-08-14T07_10_37_072Z-debug.log
2020-08-14T07:10:37.097Z rc=1

Thank you for your help

I don't see what it is that makes you think that is the problem.

What do these commands show?
node -v
npm -v

However it might possibly have been a temporary problem with the npmjs website. Is it still failing?

What happens if, in a browser, you go to https://registry.npmjs.org/node-red-contrib-ui-led ?

source computer:
node -v shows: v12.18.0
npm-v shows: 6.14.4
target computer:
node -v shows: v14.4.0
npm-v shows: 6.14.5

yes I have had the problem since yesterday

the address shows something like a log file

That is not a library version problem. That could be resolved quite easily.

You have a Node.js version issue given that your target device is a whole major version ahead.

Also, as Colin has indicated, the error you are getting does not appear to be related to either a library nor the Node.js version. Instead it appears to be a problem of the target device not being able to connect to npmjs.com

You will need to resolve that npm problem first. Can you manually install npm modules?

Once you have resolved that. The installation on the target should be simple enough as long as you copied over the settings.js and package.json files not just the flows and credentials files.

if I want to run an update, the following message appears:

C:\Users\uhmvcw>npm install -g --unsafe-perm node-red
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning UNABLE_TO_GET_ISSUER_CERT_LOCALLY: request to https://registry.npmjs.org/node-red failed, reason: unable to get local issuer certificate
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated bcrypt@3.0.8: versions < v5.0.0 do not handle NUL in passwords properly
C:\Users\uhmvcw\AppData\Roaming\npm\node-red-pi -> C:\Users\uhmvcw\AppData\Roaming\npm\node_modules\node-red\bin\node-red-pi
C:\Users\uhmvcw\AppData\Roaming\npm\node-red -> C:\Users\uhmvcw\AppData\Roaming\npm\node_modules\node-red\red.js

  • node-red@1.1.0
    updated 1 package in 20.975s

A quick internet search suggests that you should run npm cache verify.

You could also try npm cache clear --force (ignore the warning, it is fine).

after npm cache clear --force I have the following error when trying update:

C:\Users\uhmvcw>npm install -g --unsafe-perm node-red
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! request to https://registry.npmjs.org/node-red failed, reason: unable to get local issuer certificate

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\uhmvcw\AppData\Roaming\npm-cache_logs\2020-08-14T09_28_34_851Z-debug.log

Assuming you haven't done anything odd, to install a package globally you need to use sudo.

Not sure if there is a global version of the cache - I think that there is, so you probably also need to clear the global cache as well.

I can't use the command sudo because I use windows

Sometimes there are certificate issues due to date time mismatch

out of curiosity is the clock / date / timezone set correctly on the pc ?

yes, this is correct

Try
npm -g cache clear --force

@colin i've tried it

I have now reinstalled node.js and the same version on both computers. unfortunately, individual flows are still not recognized. I still can't update my libraries.

More detail please. What do you mean flows are not recognised, what error are you getting when you use npm?

The equivelant on windows is right click runas administrator (even if the account is an administrator account)

on an administrative cmd prompt, do this...

npm config set strict-ssl false
REM now try again
npm install -g --unsafe-perm node-red

@uNodem are you using command prompt or powershell ?

there is an article here that describes some issue with powershell

  1. in case you were using powershell try command prompt as admin
  2. also the recommened solution based on the above article was to run
    npm config set registry http://registry.npmjs.org/

ps. i dont know if its correct to change the registry from https to http but you can give it a try

@UnborN thank you, this has solved it and I can now update.

Now I have only one last problem. I can't install two pallete, or if I install them it doesn't appear on the left in the bar. These are the two libraries where I had difficulty importing.

  1. what method did you use to install them?
    According to the docs you can use npm in the .node-red folder or directly within the editor by selecting the Manage Palette
  2. did you get any error messages ?
  3. did you try to restart node-red and refresh your browser ? (hard refresh - delete browser cache)
  1. I tried it out via the editor as well as via the cmd prompt.

  2. C:\Users\XXX>npm install node-red-contrib-ui-led
    npm WARN XXX@1.0.0 No description
    npm WARN XXX@1.0.0 No repository field.

  1. yes, I tried that too. I have also completely reinstalled node red