文件操作 - bin-links.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/n/versions/node/12.18.0/lib/node_modules/npm/lib/config/bin-links.js
编辑文件内容
'use strict' const npm = require('../npm.js') var packageId = require('../utils/package-id.js') const log = require('npmlog') module.exports = binLinksOpts function binLinksOpts (pkg) { return { ignoreScripts: npm.config.get('ignore-scripts'), force: npm.config.get('force'), globalBin: npm.globalBin, globalDir: npm.globalDir, json: npm.config.get('json'), log: log, name: 'npm', parseable: npm.config.get('parseable'), pkgId: packageId(pkg), prefix: npm.config.get('prefix'), prefixes: [ npm.prefix, npm.globalPrefix, npm.dir, npm.root, npm.globalDir, npm.bin, npm.globalBin ], umask: npm.config.get('umask') } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件