fnm node包管理器

for Mac / linux

release 里直接下载对应文件即可,将 bin 文件放入到 path中
https://github.com/Schniz/fnm/releases
mac 也可以使用 brew install fnm

有 fnm 命令之后在 profile 文件( .bashrc.zshrc)里添加

eval "$(fnm env --use-on-cd --shell bash)"

for windows

推荐使用 scoop

安装scoop

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

之后使用 scoop 命令安装fnm

scoop install fnm

安装完 fnm 后修改 windows profile 文件

Invoke-Item $profile

在文本框中输入

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

这样就可以在文件目录中直接输入 powershell 来调起 powershell 工具时使用fnm 了
但是cmd 是不可以的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值