Pana / nrm

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

fix: lock chalk and open package version #148

Open LuoRiWuSheng opened 1 year ago

LuoRiWuSheng commented 1 year ago

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

LuoRiWuSheng commented 1 year ago

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的办法