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

fix: lock chalk and open package version #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LuoRiWuSheng
Copy link

@LuoRiWuSheng LuoRiWuSheng commented Mar 21, 2023

Chalk has adopted the ES Module specification in version 5. x

open has adopted the ES Module specification in version 9. x

Fix the version of the above package to avoid command errors

fix BugId 147

Copy link

@Diluka Diluka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the version defined in package.json is fine. when you install this package, the package.json installed is not the same file in this repo. changing this file will not fix the issue

installed version:

  "dependencies": {
    "async": "^1.5.2",
    "commander": "^2.9.0",
    "extend": "^3.0.0",
    "humps": "^2.0.1",
    "ini": "^1.1.0",
    "npm": "<8.0.0",
    "only": "0.0.2",
    "open": ">=6.0.0",
    "request": "^2.72.0"
  }

@LuoRiWuSheng
Copy link
Author

the version defined in package.json is fine. when you install this package, the package.json installed is not the same file in this repo. changing this file will not fix the issue

installed version:

  "dependencies": {
    "async": "^1.5.2",
    "commander": "^2.9.0",
    "extend": "^3.0.0",
    "humps": "^2.0.1",
    "ini": "^1.1.0",
    "npm": "<8.0.0",
    "only": "0.0.2",
    "open": ">=6.0.0",
    "request": "^2.72.0"
  }

我本地重新安装依赖, npm link 确实是解决了

查看 对应的 nrm 安装出来的 node_modules 也是期望的包版本; 锁包,是一个能解决这个bug的办法

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

Successfully merging this pull request may close these issues.

node version v16.18.0 ERROR: ERR_REQUIRE_ESM
2 participants