Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

npm uninstall

npm uninstall <module_name>  
Comment

how to uninstall npm package

npm uninstall -g <module_name>  //to uninstall globally
Comment

uninstall npm package

BASH
copy
npm uninstall <package-name>
Comment

npm uninstall

To uninstall a package you have previously installed locally:
npm uninstall <package-name>

To uninstall a package you have previously installed globally:
npm uninstall -g <package-name>
Comment

npm delete

npm uninstall -D package-name or npm uninstall --save-dev package-name
Comment

uninstall npm package

I have tried uninstalling global packages in several ways.

npm uninstall -g <package_name> this didn't work.

I managed to remove the global packages in the following way:

Goto terminal
Run this command npm list -g
Goto the path (C:UsersuserAppDataRoaming
pm)
Delete all the related files to your package
Goto node_modules find and delete the package
This should work.
Comment

npm delete

npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !//npm$/ {print $NF}' | xargs npm -g rm
Comment

PREVIOUS NEXT
Code Example
Shell :: chmod 777 meaning 
Shell :: nvm github 
Shell :: powershell command line variables 
Shell :: git create new repo from branch 
Shell :: how to remove docker image 
Shell :: how to exit git in terminal 
Shell :: dos dir 
Shell :: wpa passphrase 
Shell :: git update another branch 
Shell :: get total github lines 
Shell :: lighthouse 
Shell :: kali linux command download 
Shell :: view memory usage linux 
Shell :: docker 
Shell :: bash search history 
Shell :: bash compare two strings 
Shell :: install windows 10 on virtualbox mac 
Shell :: terraform 
Shell :: linux run multipel comands in one line 
Shell :: sed two patterns 
Shell :: install kali software manager support 
Shell :: codeception environnement variable not found 
Shell :: docker-compose-to-always-re-create-containers-from-fresh-images 
Shell :: Install Chef Habitat from the Command Line 
Shell :: xsl fo when else 
Shell :: screen record on fedora 
Shell :: sed script "etc/psswd" 
Shell :: vim : undo stops working 
Shell :: December festivities 
Shell :: how to check the difference between the staging area and commit 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =