X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/doctor
opt
/
alt
/
alt-nodejs11
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
doctor
/
ðŸ“
..
📄
check-files-permission.js
(1.93 KB)
📄
check-ping.js
(397 B)
📄
get-git-path.js
(300 B)
📄
get-latest-nodejs-version.js
(800 B)
📄
get-latest-npm-version.js
(444 B)
📄
verify-cached-files.js
(929 B)
Editing: check-ping.js
var log = require('npmlog') var ping = require('../ping.js') function checkPing (cb) { var tracker = log.newItem('checkPing', 1) tracker.info('checkPing', 'Pinging registry') ping({}, true, (err, pong) => { if (err && err.code && err.code.match(/^E\d{3}$/)) { return cb(null, [err.code.substr(1)]) } else { cb(null, [200, 'OK']) } }) } module.exports = checkPing
Upload File
Create Folder