Closed betgar closed 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 😑
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
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.