【问题标题】:Hexo init fails on WindowsHexo init 在 Windows 上失败
【发布时间】:2018-03-25 22:04:54
【问题描述】:

我正在尝试在我的 Windows 10 PC 上初始化一个 Hexo 站点。我安装了 Node 9.9.0 以及 git 2.16.2.windows.1。

我已经运行了npm install hexo-cli -g,它安装得很好。然后我按照列出的步骤创建和初始化站点 (hexo init test-site) 并收到以下错误。

我尝试全新安装 node 和 git,运行 npm install a-sync-waterfall -g,并向 node_modules 添加一个名为 .a-sync-waterfall.DELETE 的文件;但hexo init 仍然失败。手动运行npm install 也会给我同样的错误。

有什么想法吗?谢谢。


【问题讨论】:

    标签: html web init hexo


    【解决方案1】:

    Windows 和 NPM 并不是最稳定的。我发现 Yarn 更加稳定。

    尝试以下两种方法之一:

    1. 使用Yarn
    2. 删除node_modules文件夹,清空NPM全局缓存,尝试hexo init
      • del node_modules
      • npm cache clear --force
      • hexo init test-site

    【讨论】:

      猜你喜欢
      • 2022-07-01
      • 1970-01-01
      • 2019-05-23
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 2015-06-17
      • 1970-01-01
      • 2020-08-15
      相关资源
      最近更新 更多