Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao
MIT License
2.77k stars 242 forks source link

关于报错的问题throw new ERR_REQUIRE_ESM、const open = require('open')、node 升级到18.xx.xx后包错的问题解决 #157

Open maxiaoqu opened 1 year ago

maxiaoqu commented 1 year ago

1、升级nrm里面open模块 npm install -g nrm open@8.4.2 --save

2、使用替代品 【替代品1 (我基于它进行了改造)】npm install invm -g (详情地址:https://github.com/maxiaoqu/nrm ) 【替代品2】npm i nrm-sunny1011111 -g (详情地址:https://www.npmjs.com/package/nrm-sunny1011111

Roger-jc-Lu commented 1 year ago

The solution solved my problem for now, thank you.

wsgouwan commented 1 year ago

me too , thank you

fireMan-34 commented 1 year ago

I have same problem, thank you.

Alexzzzzzz1 commented 1 year ago

goooood

zerobin commented 1 year ago

goooood

yiki17 commented 1 year ago

me three, thank you

weidesh commented 1 year ago

嗯嗯,我也遇到了这个问题,我nrm目录下运行npm install open@8.4.2 --save,没有全局安装open,谢谢您的无私分享 @maxiaoqu

fyzhu commented 1 year ago

npm i @fyzhu/nrm -g

CaptainOfPhB commented 11 months ago

npm i -g nrm-ng