What is envinfo?
The envinfo npm package is a tool that generates information about the development environment. It can be used to report system information, software versions, and configuration details, which is particularly useful for debugging and issue reporting in software projects.
What are envinfo's main functionalities?
System Information
This command prints information about the system, such as OS, CPU, Memory, and Shell.
envinfo --system
Browsers
This command lists installed web browsers and their versions.
envinfo --browsers
Languages
This command shows the installed languages and their versions, like Node.js, Python, Ruby, etc.
envinfo --languages
Utilities
This command provides information about installed utilities like Git, Make, GCC, etc.
envinfo --utilities
Servers
This command reports on server software like Apache, Nginx, and IIS.
envinfo --servers
Virtualization
This command lists virtualization tools like Docker, Parallels, and VirtualBox.
envinfo --virtualization
IDEs
This command shows the installed Integrated Development Environments (IDEs) and their versions.
envinfo --ides
SDKs
This command lists the installed SDKs for platforms like iOS, Android, and .NET.
envinfo --sdks
Custom Configuration
This command allows for custom configuration to include duplicate packages in the output and the full dependency tree.
envinfo --duplicates --fullTree
Other packages similar to envinfo
systeminformation
The systeminformation package provides detailed information about the system hardware and software. It offers a broader range of system metrics compared to envinfo, but it does not focus on the development environment configuration.
os
The os package is a core Node.js module that provides basic operating system-related utility functions. It is more limited in scope compared to envinfo and does not provide information about software versions or development tools.
which
The which package is a simple utility to find the path of the executable files in the system. It is much more specific in functionality compared to envinfo, which provides a comprehensive report of the environment.
envinfo
Reporting issues is a pain. Responding to issues is a pain. Make it a bit better.
Installation & Usage
Install this package globally:
npm install -g envinfo
envinfo
Environment:
OS: macOS Sierra 10.12.5
Node: 8.1.3
Yarn: 0.27.5
npm: 5.1.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.3934792
Optionally add packages from your package.json:
envinfo --packages react,react-native
Environment:
OS: macOS Sierra 10.12.5
Node: 8.1.3
Yarn: 0.27.5
npm: 5.1.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.3934792
Packages: (wanted => installed)
react: 16.0.0-alpha.6 => 16.0.0-alpha.6
react-native: 0.44.0 => 0.44.0
Or all of your packages like this:
envinfo --packages
Environment:
OS: macOS Sierra 10.12.5
Node: 8.1.3
Yarn: 0.27.5
npm: 5.1.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.3934792
Packages: (wanted => installed)
eslint: ^4.0.0 => 4.2.0
prettier-eslint-cli: ^4.1.1 => 4.1.1
minimist: ^1.2.0 => 1.2.0
os-name: ^2.0.1 => 2.0.1
which: ^1.2.14 => 1.2.14
Contributing
PRs for additional features are welcome! Run npm run lint && npm run format
before commiting.
This project came out of a PR to the React Native CLI tool - issues are reported frequently without important environment information, like Node/npm versions.