listing of node modules

Sometimes, it is useful to see the list of packages that you have installed on your system. You can do that with the following commands:

# list all installed modules with dependencies

# list all installed modules without dependencies

# list all installed globally dependencies

 

How to create Node js project

npm init is the command to create a node project.

npm init is a tool for creating (or modifying) a project’s package.json file.

When you enter the command npm init on your terminal, it will take you through a series of questions, for which, you can either go with default answers or can give different answers.

This is how it looks like in my terminal, after running npm init command. Continue reading “How to create Node js project”