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
成功啦!
网友评论