GRAYBYTE WORDPRESS FILE MANAGER9728

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/node_modules/npm/node_modules/node-gyp/lib/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib/node_modules/npm/node_modules/node-gyp/lib//remove.js
'use strict'

const fs = require('fs')
const rm = require('rimraf')
const path = require('path')
const log = require('npmlog')
const semver = require('semver')

function remove (gyp, argv, callback) {
  var devDir = gyp.devDir
  log.verbose('remove', 'using node-gyp dir:', devDir)

  // get the user-specified version to remove
  var version = argv[0] || gyp.opts.target
  log.verbose('remove', 'removing target version:', version)

  if (!version) {
    return callback(new Error('You must specify a version number to remove. Ex: "' + process.version + '"'))
  }

  var versionSemver = semver.parse(version)
  if (versionSemver) {
    // flatten the version Array into a String
    version = versionSemver.version
  }

  var versionPath = path.resolve(gyp.devDir, version)
  log.verbose('remove', 'removing development files for version:', version)

  // first check if its even installed
  fs.stat(versionPath, function (err) {
    if (err) {
      if (err.code === 'ENOENT') {
        callback(null, 'version was already uninstalled: ' + version)
      } else {
        callback(err)
      }
      return
    }
    // Go ahead and delete the dir
    rm(versionPath, callback)
  })
}

module.exports = exports = remove
module.exports.usage = 'Removes the node development files for the specified version'

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
Find-VisualStudio.cs
7.745 KB
March 10 2021 14:36:38
root / root
0644
build.js
5.164 KB
March 10 2021 14:36:38
root / root
0644
clean.js
0.347 KB
March 10 2021 14:36:38
root / root
0644
configure.js
12.043 KB
March 10 2021 14:36:38
root / root
0644
find-node-directory.js
2.317 KB
March 10 2021 14:36:38
root / root
0644
find-python.js
10.884 KB
March 10 2021 14:36:38
root / root
0644
find-visualstudio.js
13.534 KB
March 10 2021 14:36:38
root / root
0644
install.js
14.012 KB
March 10 2021 14:36:38
root / root
0644
list.js
0.626 KB
March 10 2021 14:36:38
root / root
0644
node-gyp.js
4.573 KB
March 10 2021 14:36:38
root / root
0644
process-release.js
5.651 KB
March 10 2021 14:36:38
root / root
0644
proxy.js
2.568 KB
March 10 2021 14:36:38
root / root
0644
rebuild.js
0.307 KB
March 10 2021 14:36:38
root / root
0644
remove.js
1.277 KB
March 10 2021 14:36:38
root / root
0644
util.js
1.869 KB
March 10 2021 14:36:38
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF