安装webpack一直错误 Please include the following file with any support request:

安装webpack的时候一直报错 Please include the following file with any support request: 请包含以下文件和任何支持请求:
PS D:\www> npm install webpack webpack-cli --save-dev
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! Windows_NT 10.0.22000
npm ERR! argv "D:\node.exe" "C:\Users\20289\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "webpack" "webpack-cli" "--save-dev"
npm ERR! node v16.15.1
npm ERR! npm v3.8.6
npm ERR! code ENOTFOUND
npm ERR! errno -3008
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND registry.cnpmjs.org
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! D:\www\npm-debug.log

img

升级一下Npm版本试试吧 npm v3.8.6 这也太低了

npm config set proxy false
npm cache verify

试试
或者 用 cnpm先试试