✏️ 正在编辑: configure
路径:
/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/configure
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/usr/bin/env bash # set configurations that will be "sticky" on this system, # surviving npm self-updates. CONFIGS=() i=0 # get the location of this file. unset CDPATH CONFFILE=$(cd $(dirname "$0"); pwd -P)/npmrc while [ $# -gt 0 ]; do conf="$1" case $conf in --help) echo "./configure --param=value ..." exit 0 ;; --*) CONFIGS[$i]="${conf:2}" ;; *) CONFIGS[$i]="$conf" ;; esac let i++ shift done for c in "${CONFIGS[@]}"; do echo "$c" >> "$CONFFILE" done
💾 保存文件
← 返回文件管理器