Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,我遇到了两个问题 #1085

Open
zenggpzqbx opened this issue Jan 1, 2024 · 5 comments
Open

你好,我遇到了两个问题 #1085

zenggpzqbx opened this issue Jan 1, 2024 · 5 comments

Comments

@zenggpzqbx
Copy link

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

@Schniz
Copy link
Owner

Schniz commented Jan 1, 2024

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:?

@zenggpzqbx
Copy link
Author

zenggpzqbx commented Jan 11, 2024

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.

@JazzoLopez
Copy link

waos

@Schniz
Copy link
Owner

Schniz commented May 27, 2024

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

@antnesswcm
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants