Web appOpen in Telegram

Thread你喜欢带着 u 盘到处跑带点其他东西也没事吧,比如

5 messages · –
O
你喜欢带着 u 盘到处跑带点其他东西也没事吧,比如 alias npm="NPM_CONFIG_USERCONFIG=/mnt/your-disk/.npmrc npm"
  1. D
    可以的,原來解決方案在文章的config部分
  2. D
    話說node12,npm6.14會在user目錄下生成一個.config這個有辦法治嗎
    1. O
      https://wiki.archlinux.org/title/XDG_Base_Directory 如果你用到的包会生成配置文件,那么它们要么放在 $HOME/,要么放在 $XDG_CONFIG_DIR,你可能要一一调整($XDG_STATE_DIR 里面出现东西也是非常有可能的)。部分习惯好的包会认这个变量。 well,如果你真的在一个 read-only 的主目录里面,这基本上意味着整个文件系统都是只读的,我的建议是把你的系统装在 u 盘里
JJavaScript/Node.js 台灣JavaScript/Node.js 台灣@JavaScriptTw · group · Tech
1 999members4writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count