3/15/2024 0 Comments Npm install express globallyWhen you install packages in a custom location using the -prefix config, then you need to add the same config when you call the npm list command. If you’re using NPM v7, use the -all config to display the dependencies of installed packages (or use -depth=1 to display only top-level dependencies. list -g: display a tree of packages found in the user’s folders (without the -g option, it will list down packages in the current directory) -depth 0: don't include package’s dependencies in the tree. Starting from NPM version 7, the dependencies of each installed package will be hidden from the output by default. Here the explanation of the command: npm: Node Package Manager command line tool - package manager for the JavaScript programming language. ├── display a list of installed packages in NPM version 7, use the npm list -g command.įor version 6 and below, use the npm list -g -depth=0 command.īy default, NPM version 6 and below will print out the dependencies, which you can hide by using the -depth=0 command. In the previous tutorial we walked you through the process of setting up your npm account, we also introduced taught you how you can install npm via the browser and nvm. ![]() ![]() $ npm list -prefix /Users/nsebhastian/Desktop/test/nodeWs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |