nodejs 版本管理工具 fnm 在 windows 系统下的

2023-11-11  本文已影响0人  陈sir的知识图谱

假设已经从github 下载 fnm 并放置在 path 环境变量的目录中
PowerShell
在power shell 的profile 文件中添加如下命令到末尾

fnm env --use-on-cd | Out-String | Invoke-Expression

power shell 的环境变量文件可以通过 $PROFILE 查看

Windows 系统 profile 文件在 ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
macOS/Linux, profile 文件在 ~/.config/powershell/Microsoft.PowerShell_profile.ps1

本文由博客一文多发平台 OpenWrite 发布!

上一篇 下一篇

猜你喜欢

热点阅读