使用npm命令npm install
时候出现错误:
D:\Java 1\WorkSpace\workspaces-VsCode\egg_mongo_server\egg_mongo_server>npm i
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNRESET: request to https://registry.npmjs.org/acorn failed, reason: read ECONNRESET
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\80992399\AppData\Roaming\npm-cache\_logs\2019-12-09T06_42_39_244Z-debug.log
解决方法:
npm config set strict-ssl false