This is a command-line tool to visualize the dependency tree of a Node.js project.
To install the tool globally, run the following command:
git clone https://github.com/GjinPrelvukaj/Tree
cd Tree
npm install -g .
After installation, you can use the tool by running the tree command followed by the path to your project:
tree --path "path/to/your/project"
--path: Specifies the path to the project (required)
tree --path "/Users/username/projects/my-node-project"
This will display a tree structure of your project's dependencies in the console.
- Node.js
- npm
- The tool requires a
package.jsonfile to be present in the specified project directory. - It uses
npm listcommand internally, so make sure you have npm installed and the dependencies are installed in your project.
If you encounter any issues, make sure:
- You have Node.js and npm installed.
- The specified path is correct and contains a
package.jsonfile. - You have the necessary permissions to read the project directory and execute npm commands.
For any other issues, please refer to the project's issue tracker on GitHub.