Pana / nrm

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

nrm broken on npm v8.0.0 #104

Closed betgar closed 2 years ago

betgar commented 2 years ago

npm v8.0.0 remove support for require('npm').

https://github.com/npm/cli/releases/tag/v8.0.0

The purpose of this release is to drop support for old node versions and to remove support for require('npm'). There are no other breaking changes.

ThomasWhyne commented 2 years ago

npm v8.0.0 remove support for require('npm').

https://github.com/npm/cli/releases/tag/v8.0.0

The purpose of this release is to drop support for old node versions and to remove support for require('npm'). There are no other breaking changes.

ran into the same problem, requiring npm failed, had to hack the code in cli.js to make it work 😑

Thyiad commented 2 years ago

same problem, I changed package.json, set npm to v7...

NeverSeeBefore commented 2 years ago

+1,error is because of npm dependence version is "latest"

bbb324 commented 2 years ago

change package.json npm to 7.5.4, and delete node_modules, and execute npm i again, that works for me