flow-node command not found

In this troubleshooting guide we learn how to fix flow-node command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

flow-node: command not found

or when using sudo you get the following error message

sudo: flow-node: command not found

Solutions to flow-node: command not found

How To Fix flow-node: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu flow-node is provided by node-flow-remove-types package.

node-flow-remove-types is:

Turn your JavaScript with Flow type annotations into standard JavaScript in an instant with no configuration and minimal setup.

Flow provides static type checking to JavaScript which can both help find and detect bugs long before code is deployed and can make code easier to read and more self-documenting. The Flow tool itself only reads and analyzes code.

Running code with Flow type annotations requires first removing the annotations which are non-standard JavaScript.

Node.js is an event-based server-side JavaScript engine.

To fix this problem, we can install more using the command below.

sudo apt-get -y install node-flow-remove-types

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install node-flow-remove-types.

sudo apt -y install node-flow-remove-types

Or if you have aptitude installed you can use the following command.

sudo aptitude install node-flow-remove-types

Summary

In this tutorial we learn how to fix flow-node command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.