npm 错误!cb() 从未被调用

Dee*_*hah 5 node.js npm react-native npm-install expo

我试图下载 expo cli,但出现错误:-

C:\WINDOWS\system32>npm i -g expo-cli
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HP\AppData\Local\npm-cache\_logs\2021-03-03T14_02_14_809Z-debug.log
Run Code Online (Sandbox Code Playgroud)

我还使用了npm cache clean --force。但它也没有起作用

C:\WINDOWS\system32>npm -v
7.6.0

C:\WINDOWS\system32>node -v
v14.16.0
Run Code Online (Sandbox Code Playgroud)

请帮我......

执行完npm i -g npm后它起作用了!!!!!!

但是当我尝试安装或下载任何软件包时出现错误:

E:\React-native\practice>npm i react-native-elements
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HP\AppData\Local\npm-cache\_logs\2021-03-04T05_03_20_067Z-debug.log
Run Code Online (Sandbox Code Playgroud)

那么到底出了什么问题呢?

use*_*449 2

Run npm install -g npm & npm cache clean
Run Code Online (Sandbox Code Playgroud)