require() of ES modules is not supported.
senfish opened this issue · comments
npm install nrm open@8.4.2 -g
open 这个包从 9.x 开始改成了 Native ESM,不再支持 require 的方式引入,nrm 应该锁定一下依赖到这个版本
@i5ting the version 1.2.5
published to npm is different from the source code of the master
branch.
@endwalker It's work for me , thank you.
试了下这个,也可以:
npm install -g Pana/nrm
直接从github仓库安装:cnpm i -g nrm@git@github.com:Pana/nrm.git
use this command: npm install -g nrm open@8.4.2 --save
Try nrm i -g nrm-ng
.