Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require() of ES modules is not supported. #153

Open
senfish opened this issue Apr 2, 2023 · 8 comments
Open

require() of ES modules is not supported. #153

senfish opened this issue Apr 2, 2023 · 8 comments

Comments

@senfish
Copy link

senfish commented Apr 2, 2023

nrm: 1.2.5

image

我很好奇,我进入了这个chalk地址查看一下这个包package.json,居然是5.2.0,为什么会安装最新的ES Module呢,按道理应该是V4版本的chalk

@endwalker
Copy link

npm install nrm open@8.4.2 -g

@wjq990112
Copy link

open 这个包从 9.x 开始改成了 Native ESM,不再支持 require 的方式引入,nrm 应该锁定一下依赖到这个版本

@marswong
Copy link

marswong commented Apr 6, 2023

@i5ting the version 1.2.5 published to npm is different from the source code of the master branch.

@xuya227939
Copy link

@endwalker It's work for me , thank you.

@kiinlam
Copy link

kiinlam commented Apr 12, 2023

试了下这个,也可以:

npm install -g Pana/nrm

@deepraining
Copy link

直接从github仓库安装:cnpm i -g nrm@git@github.com:Pana/nrm.git

@285878535
Copy link

use this command: npm install -g nrm open@8.4.2 --save

@CaptainOfPhB
Copy link
Contributor

Try nrm i -g nrm-ng.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants