fnm icon indicating copy to clipboard operation
fnm copied to clipboard

你好,我遇到了两个问题

Open zenggpzqbx opened this issue 2 years ago • 6 comments

1、安装完成后,有一个installation目录,我认为他是多余的 2、fnm_multishells默认是C盘,我想修改到D盘,但是没有效果

zenggpzqbx avatar Jan 01 '24 09:01 zenggpzqbx

I don't speak chinese so I used google translate so I'm sorry if this isn't what you asked:

  1. The installation directories actually contain the unpacked node, which is what you run when calling node so it isn't redundant

  2. fnm_multishells is stored in your local temp/cache directory from your operating system configurations. it's all symlinks/shortcuts so they should be very lean. Why do you want them on D:?

Schniz avatar Jan 01 '24 09:01 Schniz

Hello, thank you very much for your reply, maybe my description is somewhat inaccurate. My first question: the installation directory is like this "fnm/node-versions/v20.10.0/installation/", I mean is it possible to put the contents of the installation directory directly into the v20.10.0 directory and delete the installtion directory at the same time.

zenggpzqbx avatar Jan 11 '24 15:01 zenggpzqbx

waos

JazzoLopez avatar May 27 '24 16:05 JazzoLopez

it is, but it wasn't as i implemented it at first... does that matter?

Schniz avatar May 27 '24 18:05 Schniz

1、安装完成后,有一个installation目录,我认为他是多余的 2、fnm_multishells默认是C盘,我想修改到D盘,但是没有效果

你好,我摸索了一下, fnm安装node的目录可以通过环境变量FNM_DIR控制 至于fnm_multishells目录,里面放的是连接,不占空间,不管他就是了

附上我的配置:

PS D:\> $env:FNM_DIR && $env:FNM_NODE_DIST_MIRROR
D:\MyProgram\EnglishRepair\fnm\fnmdir
https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/
PS D:\> fnm env
......
$env:FNM_DIR = "D:\MyProgram\EnglishRepair\fnm\fnmdir"
$env:FNM_COREPACK_ENABLED = "false"
$env:FNM_RESOLVE_ENGINES = "false"
$env:FNM_VERSION_FILE_STRATEGY = "local"
$env:FNM_LOGLEVEL = "info"
$env:FNM_NODE_DIST_MIRROR = "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/"
$env:FNM_ARCH = "x64"

希望这对你有帮助!


English:

Hello, I figured out that the node directory installed by fnm is controlled by the environment variable FNM_DIR. As for the fnm_multishells directory, it contains links and doesn't take up space, so we don't need to worry about it.

Here is my configuration:

PS D:\> $env:FNM_DIR && $env:FNM_NODE_DIST_MIRROR
D:\MyProgram\EnglishRepair\fnm\fnmdir
https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/
PS D:\> fnm env
......
$env:FNM_DIR = "D:\MyProgram\EnglishRepair\fnm\fnmdir"
$env:FNM_COREPACK_ENABLED = "false"
$env:FNM_RESOLVE_ENGINES = "false"
$env:FNM_VERSION_FILE_STRATEGY = "local"
$env:FNM_LOGLEVEL = "info"
$env:FNM_NODE_DIST_MIRROR = "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/"
$env:FNM_ARCH = "x64"

I hope this helps you!

antnesswcm avatar Jul 23 '24 08:07 antnesswcm