MCPcopy Create free account
hub / github.com/cloudgraphdev/cli / uninstall

Method uninstall

src/manager/npm/index.ts:43–64  ·  view source on GitHub ↗
(_path: string, version?: string)

Source from the content-addressed store, hash-verified

41 }
42
43 async uninstall(_path: string, version?: string): Promise<number> {
44 return new Promise((resolve, reject) => {
45 const module = `${_path}${version ? `@${version}` : ''}`
46
47 const flags = [
48 '--no-audit',
49 '--no-fund',
50 '--no-save',
51 '--ignore-scripts',
52 '--silent',
53 ]
54 exec(
55 `${this.npmBinary} uninstall ${module} ${flags.join(' ')}`,
56 { cwd: path.resolve(__dirname, '../../../') },
57 err => {
58 if (err) return reject(err)
59
60 resolve(0)
61 }
62 )
63 })
64 }
65
66 async queryPackage(module: string): Promise<any> {
67 return new Promise((resolve, reject) => {

Callers 1

removePluginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected