fnm无法切换node版本

error: We can't find the necessary environment variables to replace the Node version.
You should setup your shell profile to evaluate `fnm env`, see https://github.com/Schniz/fnm#shell-setup on how to do this
Check out our documentation for more information: https://fnm.vercel.app
fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression

# 修改powershell profile,持久化此配置
%userprofile%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
# 创建profile
if (-not (Test-Path $profile)) { New-Item $profile -Force }

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注