Open senfish opened 1 year ago
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
.
nrm: 1.2.5
我很好奇,我进入了这个
chalk
地址查看一下这个包package.json
,居然是5.2.0
,为什么会安装最新的ES Module
呢,按道理应该是V4版本的chalk
。