Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodejs 20上面無法使用

zzzgit opened this issue · comments

commented

image

你试试看 npm i -g open@8 后能不能使用

为啥这个问题并不能直接有nrm解决?

为啥这个问题并不能直接有nrm解决?

跟v8引擎版本有关系

你试试看 npm i -g open@8 后能不能使用

这种esm问题真的挺烦,用户总是被上游和生态“一刀切”太烦了
我这边还需要删掉nrm/node_modules/open才可以,以下命令仅供参考:

npm i -g open@8
rm -rf $(dirname $(which nrm))/../lib/node_modules/nrm/node_modules/open
nrm ls

发现前面的几个issue里已经提到比较优的解决方法了~

npm i @fyzhu/nrm -g

commented

已fix,使用v1.2.6