cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Using Terminal to run Node.js command

Using Terminal to run Node.js command

Bala
Member

Hello,

I am having an issue with a 3rd party node in Node-Red and there's a resolution for it on the github forum but I do not know how to implement it. I will need to run the following command: export NODE_OPTIONS=--openssl-legacy-provider but am not sure how and where to run it from. I usually run such commands from the terminal if Node-Red is installed locally on PC but can't seem to figure out how to do it here. Any help on this is appreciated.

Thanks,

Bala

3 REPLIES 3

Sgilk
Contributor

Hi @Bala ,

Since there is no terminal within Node-RED, you'd have to do this over SSH. You could also build the node offline, include the necessary configuration, package it as tar.gz, and then install the package manually in Node-RED.

Which pallet are you trying to work with? Is this on a physical or virtual CORE?

Hi @Sgilk ,

I am working with the opc-da-in pallette (https://flows.nodered.org/node/node-red-contrib-opc-da). This is on physical core X3. Any documentation on how it can be done over SSH? My knowledge is limited when it comes to building node offline.

On a physical CORE, you'll need to request an ssh user assertion. This would not be valid for a production solution and only for development purposes.

See this How-To for more info.

If exporting the environment variable is required and you don't have ssh access, I think your best bet will be building a custom Node-RED snap.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist