文件操作 - bin.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/node_modules/npm/lib/commands/bin.js
编辑文件内容
const envPath = require('../utils/path.js') const BaseCommand = require('../base-command.js') class Bin extends BaseCommand { static description = 'Display npm bin folder' static name = 'bin' static params = ['global'] async exec (args) { const b = this.npm.bin this.npm.output(b) if (this.npm.config.get('global') && !envPath.includes(b)) { // XXX: does this need to be console? console.error('(not in PATH env variable)') } } } module.exports = Bin
修改文件时间
将文件时间修改为当前时间的前一年
删除文件