Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nrm broken on npm v8.0.0

betgar opened this issue · comments

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.

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 😑

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

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

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