美文网首页
log4js安装失败的解决办法

log4js安装失败的解决办法

作者: 毛毛熊毛茸茸 | 来源:发表于2020-04-14 10:11 被阅读0次

    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
    

    成功啦!

    相关文章

      网友评论

          本文标题:log4js安装失败的解决办法

          本文链接:https://www.haomeiwen.com/subject/rkqzmhtx.html