February 12, 2020 By Kazuki Nobutani 2 min read

Node-RED is an open source programming tool for wiring hardware devices and services on the Internet and APIs.

IBM Cloud offers a pre-configured Node-RED app kit on its Cloud Foundry (CF) space

There are times where users encounter underlying Node.js errors when launching the app due to internal changes. This post will outline how to modify pre-configured settings to resolve any errors you may encounter.

Error example

The application log shows the following error:

Unable to install node: no match found for 6.x in [8.16.0 8.16.1 10.16.0 10.16.3 12.7.0 12.8.1]”

This error indicates that the underlying Node.js version is outdated and cannot start the application. Therefore, restarting the application results in the same error.

Step 1: Enable the continuous delivery feature

First of all, you need to enable the continuous delivery feature. Continuous delivery allows you to store the source code of the Node-RED application on an IBM Git repository and modify its packages and other fields.

  1. Open your resource list.
  2. Open the application in question. Select the Overview tab from the left menu.
  3. Click the Enable icon under Continuous delivery.
  4. Define your repository information and input the API key.
  5. By default, the IBM Git repository and toolchain (code build and deployment) are included. You can create a new API key if you want.
  6. Once you define all values, click Create.

Step 2: Modify the underlying Node.js package

  1. Once continuous delivery creation completes, the toolchain is configured. Now, click Git under the CODE section. The IBM Git repository where the Node-RED code is stored will open.
  2. Open the package.json file in the root directory of the repository.
  3. Click Edit and modify the engine part of the code to the version supported.
    FROM:
     "engines": {
     "node": "6.x"
     }

    TO:

    "engines": {
     "node": "8.x"
     }
  4. Click Commit changes, which triggers the toolchain to automatically build and deploy your application:

Next steps

By following these steps, you’re now able to change the underlying Node.js version. The IBM Cloud platform evolves every day, so there is the chance that the version of Node.js you are running will become unsupported. If this happens, you can apply the same steps to overcome the problem. Also, enabling the continuous delivery feature allows you to customize your Node-RED. 

For more information on Node-RED, see their page on “Packaging.”

Node-RED is an open source program, so if you need more help, you can always contact community members by posting questions on the forum.

Was this article helpful?
YesNo

More from Cloud

New 4th Gen Intel Xeon profiles and dynamic network bandwidth shake up the IBM Cloud Bare Metal Servers for VPC portfolio

3 min read - We’re pleased to announce that 4th Gen Intel® Xeon® processors on IBM Cloud Bare Metal Servers for VPC are available on IBM Cloud. Our customers can now provision Intel’s newest microarchitecture inside their own virtual private cloud and gain access to a host of performance enhancements, including more core-to-memory ratios (21 new server profiles/) and dynamic network bandwidth exclusive to IBM Cloud VPC. For anyone keeping track, that’s 3x as many provisioning options than our current 2nd Gen Intel Xeon…

IBM and AWS: Driving the next-gen SAP transformation  

5 min read - SAP is the epicenter of business operations for companies around the world. In fact, 77% of the world’s transactional revenue touches an SAP system, and 92% of the Forbes Global 2000 companies use SAP, according to Frost & Sullivan.   Global challenges related to profitability, supply chains and sustainability are creating economic uncertainty for many companies. Modernizing SAP systems and embracing cloud environments like AWS can provide these companies with a real-time view of their business operations, fueling growth and increasing…

Experience unmatched data resilience with IBM Storage Defender and IBM Storage FlashSystem

3 min read - IBM Storage Defender is a purpose-built end-to-end data resilience solution designed to help businesses rapidly restart essential operations in the event of a cyberattack or other unforeseen events. It simplifies and orchestrates business recovery processes by providing a comprehensive view of data resilience and recoverability across primary and  auxiliary storage in a single interface. IBM Storage Defender deploys AI-powered sensors to quickly detect threats and anomalies. Signals from all available sensors are aggregated by IBM Storage Defender, whether they come…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters