Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.16.136.129
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
node-gyp /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
Find-VisualStudio.cs
7.75
KB
-rw-r--r--
2021-03-10 14:36
build.js
5.16
KB
-rw-r--r--
2021-03-10 14:36
clean.js
355
B
-rw-r--r--
2021-03-10 14:36
configure.js
12.04
KB
-rw-r--r--
2021-03-10 14:36
find-node-directory.js
2.32
KB
-rw-r--r--
2021-03-10 14:36
find-python.js
10.88
KB
-rw-r--r--
2021-03-10 14:36
find-visualstudio.js
13.53
KB
-rw-r--r--
2021-03-10 14:36
install.js
14.01
KB
-rw-r--r--
2021-03-10 14:36
list.js
641
B
-rw-r--r--
2021-03-10 14:36
node-gyp.js
4.57
KB
-rw-r--r--
2021-03-10 14:36
process-release.js
5.65
KB
-rw-r--r--
2021-03-10 14:36
proxy.js
2.57
KB
-rw-r--r--
2021-03-10 14:36
rebuild.js
314
B
-rw-r--r--
2021-03-10 14:36
remove.js
1.28
KB
-rw-r--r--
2021-03-10 14:36
util.js
1.87
KB
-rw-r--r--
2021-03-10 14:36
Save
Rename
'use strict' const path = require('path') const log = require('npmlog') function findNodeDirectory (scriptLocation, processObj) { // set dirname and process if not passed in // this facilitates regression tests if (scriptLocation === undefined) { scriptLocation = __dirname } if (processObj === undefined) { processObj = process } // Have a look to see what is above us, to try and work out where we are var npmParentDirectory = path.join(scriptLocation, '../../../..') log.verbose('node-gyp root', 'npm_parent_directory is ' + path.basename(npmParentDirectory)) var nodeRootDir = '' log.verbose('node-gyp root', 'Finding node root directory') if (path.basename(npmParentDirectory) === 'deps') { // We are in a build directory where this script lives in // deps/npm/node_modules/node-gyp/lib nodeRootDir = path.join(npmParentDirectory, '..') log.verbose('node-gyp root', 'in build directory, root = ' + nodeRootDir) } else if (path.basename(npmParentDirectory) === 'node_modules') { // We are in a node install directory where this script lives in // lib/node_modules/npm/node_modules/node-gyp/lib or // node_modules/npm/node_modules/node-gyp/lib depending on the // platform if (processObj.platform === 'win32') { nodeRootDir = path.join(npmParentDirectory, '..') } else { nodeRootDir = path.join(npmParentDirectory, '../..') } log.verbose('node-gyp root', 'in install directory, root = ' + nodeRootDir) } else { // We don't know where we are, try working it out from the location // of the node binary var nodeDir = path.dirname(processObj.execPath) var directoryUp = path.basename(nodeDir) if (directoryUp === 'bin') { nodeRootDir = path.join(nodeDir, '..') } else if (directoryUp === 'Release' || directoryUp === 'Debug') { // If we are a recently built node, and the directory structure // is that of a repository. If we are on Windows then we only need // to go one level up, everything else, two if (processObj.platform === 'win32') { nodeRootDir = path.join(nodeDir, '..') } else { nodeRootDir = path.join(nodeDir, '../..') } } // Else return the default blank, "". } return nodeRootDir } module.exports = findNodeDirectory