【问题标题】:Downloading source files cache modernizr.load.1.5.4.js Grunt Build Stall下载源文件缓存modernizr.load.1.5.4.js Grunt Build Stall
【发布时间】:2023-03-15 19:35:02
【问题描述】:

上个月我一直在使用 Yeoman 开始构建 Web 应用程序等。我遇到了一些问题,并且能够解决其中的大部分问题。但是,现在我被卡住了。

我正在运行 MAC OS 10.6.8
我已经重新安装了 Yeoman,并且 Node 将我的路径(据我所知)修复为全局路径。

在我的应用程序中运行 grunt。

  1. 强制我以sudo 运行。 (我认为这是因为此操作系统具有密码保护权限,可让应用程序和程序安装/修改文件。 ** 如果我运行 grunt -f
    Warning: Unable to write "dist/scripts/vendor/modernizr.js" file (Error code: EACCES). 这个错误发生在 grunt 中的大多数主要任务中。
  2. 运行sudo grunt
    grunt 可以很好地完成任务,直到真正的问题我找不到答案。

    Running "modernizr" task

    启用附加功能

    希夫 加载 CSS类

    寻找 Modernizr 参考资料

    在 dist/styles/main.css 中

    svg 输入

    下载源文件
    缓存modernizr.load.1.5.4.js


而且 grunt 不会完成源文件的下载。当我使用force 运行 grunt 时,它将完成下载。
我正在寻找第二个列表项的解决方案。任何帮助都会有所帮助。

【问题讨论】:

    标签: node.js gruntjs yeoman


    【解决方案1】:

    发现 npm grunt-modernizr 中存在一些故障。
    我使用了这个代码:
    npm remove grunt-moderizr && npm install --save-dev grunt-modernizr
    在这里找到:https://github.com/Modernizr/grunt-modernizr/issues/48

    【讨论】:

    • 应该是npm remove grunt-modernizer吧?
    • 抱歉,删除 `grunt-modernizer @HarryMoreno
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-31
    • 1970-01-01
    • 2010-10-06
    • 2012-12-24
    • 2021-04-30
    • 2016-07-25
    • 1970-01-01
    相关资源
    最近更新 更多