PATH: //opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/lib/config
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 bin-links.js
↓
X
📄 clear-credentials-by-uri.js
↓
X
📄 cmd-list.js
↓
X
📄 core.js
↓
X
📄 defaults.js
↓
X
📄 figgy-config.js
↓
X
📄 gentle-fs.js
↓
X
📄 get-credentials-by-uri.js
↓
X
📄 lifecycle.js
↓
X
📄 load-cafile.js
↓
X
📄 load-prefix.js
↓
X
📄 nerf-dart.js
↓
X
📄 set-credentials-by-uri.js
↓
X
📄 set-user.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: load-cafile.js
module.exports = loadCAFile var fs = require('fs') function loadCAFile (cafilePath, cb) { if (!cafilePath) return process.nextTick(cb) fs.readFile(cafilePath, 'utf8', afterCARead.bind(this)) function afterCARead (er, cadata) { if (er) { // previous cafile no longer exists, so just continue on gracefully if (er.code === 'ENOENT') return cb() return cb(er) } var delim = '-----END CERTIFICATE-----' var output output = cadata .split(delim) .filter(function (xs) { return !!xs.trim() }) .map(function (xs) { return xs.trimLeft() + delim }) this.set('ca', output) cb(null) } }
SIMPAN PERUBAHAN