Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Update for npm 5:

As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save--save option is no longer needed.

runRun

npm uninstall <package> 

forFor example:

npm uninstall mongodb 

It will remove the module from node_modulesthe node_modules folder and package.json file also the package.json file.

Update npm 5:

As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save option is no longer needed.

run

npm uninstall <package> 

for example:

npm uninstall mongodb 

It will remove the module from node_modules folder and package.json file also

Update for npm 5:

As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save option is no longer needed.

Run

npm uninstall <package> 

For example:

npm uninstall mongodb 

It will remove the module from the node_modules folder and also the package.json file.

Source Link
codemirror
  • 3.6k
  • 1
  • 32
  • 42

Update npm 5:

As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save option is no longer needed.

run

npm uninstall <package> 

for example:

npm uninstall mongodb 

It will remove the module from node_modules folder and package.json file also