How to Install and Uninstall node-require-main-filename Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 29,2024

1. Install "node-require-main-filename" package

This tutorial shows how to install node-require-main-filename on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install node-require-main-filename

2. Uninstall "node-require-main-filename" package

Please follow the steps below to uninstall node-require-main-filename on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove node-require-main-filename $ sudo apt autoclean && sudo apt autoremove

3. Information about the node-require-main-filename package on Ubuntu 21.10 (Impish Indri)

Package: node-require-main-filename
Architecture: all
Version: 2.0.0-1
Multi-Arch: foreign
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Javascript Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15
Depends: nodejs
Filename: pool/universe/n/node-require-main-filename/node-require-main-filename_2.0.0-1_all.deb
Size: 3716
MD5sum: b5ec4b0c86fbd1fb095a27fe2ad96fb3
SHA1: 937d57ba70cabce1b5e97bea1a3ecf3ecf10d1f6
SHA256: 604c59423e19fa4c5b85992c4900736afbe3e09d571b419581f36306528fbcdd
SHA512: 899c632ee22ecdea8a910c0da7197898b2da7e827433da0b7e6a81c85f371cbe3ff375f9f930b8da9621ce3b5a0212dda5f2eb92360b7438f4e69a523dd5a1a9
Homepage: https://github.com/yargs/require-main-filename
Description-en: shim for require.main.filename() that works in as many environments as possible
require.main.filename is great for figuring out the entry point for the
current application. This can be combined with a module like pkg-conf
to, as if by magic, load top-level configuration.
.
Unfortunately, require.main.filename sometimes fails when an application
is executed with an alternative process manager, e.g., iisnode.
.
require-main-filename is a shim that addresses this problem.
.
Node.js is an event-based server-side JavaScript engine.
Description-md5: bde42cd6397c20a85a99dac2057e11be