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: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
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
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.
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.
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
did you get any error messages ?
did you try to restart node-red and refresh your browser ? (hard refresh - delete browser cache)