browser-insert-module-globals command not found

In this troubleshooting guide we learn how to fix browser-insert-module-globals command not found error message

Introduction

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

browser-insert-module-globals: command not found

or when using sudo you get the following error message

sudo: browser-insert-module-globals: command not found

Solutions to browser-insert-module-globals: command not found

How To Fix browser-insert-module-globals: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu browser-insert-module-globals is provided by node-debbundle-insert-module-globals package.

node-debbundle-insert-module-globals is:

This package is part of the browserify tools, and allows one to pack the list of module in a JavaScript file. This tools analyses the syntax of the JavaScript file and replace the require function by a closure, thus allowing direct embedding of the required files.

This modules is part of Browserify a JavaScript tool that allows developers to write Node.js-style modules that compile for use in the browser.

This package also includes a few small packages:

  • node-dash-ast: a small and fast abstract tree (AST) walker.
  • node-get-assigned-identifiers: get a list of initialised javascript identifiers from an AST.
  • node-undeclared-identifier: get a list of undeclared identifiers.

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-debbundle-insert-module-globals

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

You can also use apt command to install node-debbundle-insert-module-globals.

sudo apt -y install node-debbundle-insert-module-globals

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

sudo aptitude install node-debbundle-insert-module-globals

Summary

In this tutorial we learn how to fix browser-insert-module-globals command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.