首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Hexo升级之后Butterfly主题不兼容,发生报错:TypeError: require(...) is not a function

    因为闲来无事,看着hexo的butterfly主题已经到了4.12版本,打算升级一下,主题版本,于是打开官网,查看升级方法,非常简单,一条命令即可升级方法:在 Hexo 根目录下,运行 npm update...(...) is not a function at D:\Blog\themes\butterfly\scripts\events\init.js:1:106 at D:\Blog\node_modules...:471:21)ERROR Script load failed: themes\butterfly\scripts\events\welcome.jsTypeError: require(...) is...not a function at D:\Blog\themes\butterfly\scripts\events\welcome.js:1:106 at D:\Blog\node_modules...(...) is not a function这个时候因为 npm的升级命令不起作用,需要将themes主题下的butterfly文件夹全部删除,然后在blog的根目录直接运行下面git命令,将最新版的

    72310
    领券