Pana / nrm

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

fix: limit `npm` version below 8.0 #106

Closed yingpengsha closed 2 years ago

yingpengsha commented 2 years ago

npm will not support to require('npm') after 8.0.0, this caused users who recently installed nrm to receive an error when using it.

Error: Cannot find module '/path/to/package/node_modules/npm/index.js'

Reference

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

Fixed: #104 #105

i5ting commented 2 years ago