文件操作 - npm-edit.1
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/n/versions/node/12.18.0/lib/node_modules/npm/man/man1/npm-edit.1
编辑文件内容
.TH "NPM\-EDIT" "1" "March 2020" "" "" .SH "NAME" \fBnpm-edit\fR \- Edit an installed package .SS Synopsis .P .RS 2 .nf npm edit <pkg>[/<subpkg>\.\.\.] .fi .RE .SS Description .P Selects a (sub)dependency in the current working directory and opens the package folder in the default editor (or whatever you've configured as the npm \fBeditor\fP config \-\- see \fBnpm\-config\fP \fInpm\-config)\.\fR .P After it has been edited, the package is rebuilt so as to pick up any changes in compiled packages\. .P For instance, you can do \fBnpm install connect\fP to install connect into your package, and then \fBnpm edit connect\fP to make a few changes to your locally installed copy\. .SS Configuration .SS editor .RS 0 .IP \(bu 2 Default: \fBEDITOR\fP environment variable if set, or \fB"vi"\fP on Posix, or \fB"notepad"\fP on Windows\. .IP \(bu 2 Type: path .RE .P The command to run for \fBnpm edit\fP or \fBnpm config edit\fP\|\. .SS See Also .RS 0 .IP \(bu 2 npm help folders .IP \(bu 2 npm help explore .IP \(bu 2 npm help install .IP \(bu 2 npm help config .IP \(bu 2 npm help npmrc .RE
修改文件时间
将文件时间修改为当前时间的前一年
删除文件