Как да премахнете пакет npm

Примерен код

38
0

Как да премахнете модули npm в сайта на js?

The command is simply npm uninstall <name>
// Here are different options:
// - removes the module from node_modules but 
//   does NOT update package.json
npm uninstall <name>

// - removes it from dependencies in package.json aswell
npm uninstall <name> --save

// - removes it from devDependencies in package.json aswell
npm uninstall <name> --save-dev

// -  also removes it globally 
npm uninstall -g <name> --save 

//    If you're removing a global package, however, any applications 
//    referencing it will crash.

// A local install will be in the node_modules/ directory of your 
//  application. This won't affect the application if a module remains
//  there with no references to it.

// The Node.js documents https://npmjs.org/doc/ have all the commands
// that you need to know with npm.
25
0

премахване на зависимости npm

npm uninstall <package_name>
//Example
npm uninstall mongoose
//A tip ctrl+c helps to terminate a job in terminal
24
0

премахване на npm

npm uninstall <module_name>  
21
0

как да деинсталирате пакети npm

npm uninstall --save <package_name>
npm un <package_name>
9
0

как да премахнете глобален пакет npm

npm uninstall -g <package-name>
# example 
npm uninstall -g webpack
2
0

пакет npm изтриете от уеб сайт npm

npm unpublish <package-name>@<version>

Подобни страници

Подобни страници с примери

На други езици

Тази страница на други езици

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Íslensk
..................................................................................................................