how to uninstall global package npm 1

how to uninstall global package npm

npm uninstall 
//Example
npm uninstall mongoose
//A tip ctrl+c helps to terminate a job in terminal

Here is what the above code is Doing:
1. We are requiring the mongoose module.
2. We are connecting to the database.
3. We are creating a schema for our data.
4. We are creating a model for our data.
5. We are creating a new instance of our model.
6. We are saving our data to the database.
7. We are logging a message to the console.

Similar Posts