log4js安装失败的解决办法

npm安装log4js失败

D:\gitprojects\server>npm install log4js
npm ERR! Unexpected end of JSON input while parsing near '...rp":"0.3.x","jsonfile'
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-04-14T00_42_01_307Z-debug.log

解决办法,直接安装对应的log4js版本

D:\gitprojects\server>npm install log4js@^3.0.5
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
+ log4js@3.0.5
added 14 packages from 7 contributors, removed 7 packages and audited 158 packages in 119.468s

成功啦!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容