文件操作 - root.js
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/lib/commands/root.js
编辑文件内容
const BaseCommand = require('../base-command.js') class Root extends BaseCommand { static description = 'Display npm root' static name = 'root' static params = ['global'] async exec () { this.npm.output(this.npm.dir) } } module.exports = Root
修改文件时间
将文件时间修改为当前时间的前一年
删除文件