npm ERR! Windows_NT 10.0.22000
npm ERR! argv "D:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_global\node_modules\npm\bin\npm-cli.js" "install" "webpack" "-g"
npm ERR! node v14.17.3
npm ERR! npm v3.10.10npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! Issues · npm/npm · GitHubThis repository is moving to: https://github.com/npm/cli - Issues · npm/npmhttps://github.com/npm/npm/issues
当你使用npm下载失败 npm ERR! Windows_NT 10.0.22000 的错误可以尝试通过
npm config set prefix "文件夹路径"
npm config set cache "文件夹路径"
通过修改环境变量来解决