gpt4 book ai didi

javascript - 运行 grunt 测试的 Angular 主存储库在 "bower"任务上失败

转载 作者:行者123 更新时间:2023-12-03 09:43:20 25 4
gpt4 key购买 nike

对于主要 Angular repo :https://github.com/angular/angular.js/tree/a603e202cc7e048c2ab6f12dee1cc8f277cf6f4f我正在尝试运行“grunt test”命令,这是控制台的输出(在 window 7 64 位上运行):

E:\WebstormProjects\angular.js>grunt test
Running "jshint:node" (jshint) task
>> 22 files lint free.

Running "jshint:tests" (jshint) task
>> 100 files lint free.

Running "jshint:ng" (jshint) task
>> 62 files lint free.

Running "jshint:ngAnimate" (jshint) task
>> 1 file lint free.

Running "jshint:ngCookies" (jshint) task
>> 1 file lint free.

Running "jshint:ngLocale" (jshint) task
>> 446 files lint free.

Running "jshint:ngMessages" (jshint) task
>> 1 file lint free.

Running "jshint:ngMock" (jshint) task
>> 1 file lint free.

Running "jshint:ngResource" (jshint) task
>> 1 file lint free.

Running "jshint:ngRoute" (jshint) task
>> 3 files lint free.

Running "jshint:ngSanitize" (jshint) task
>> 2 files lint free.

Running "jshint:ngScenario" (jshint) task
>> 15 files lint free.

Running "jshint:ngTouch" (jshint) task
>> 4 files lint free.

Running "jscs:src" (jscs) task
>> 639 files without code style errors.

Running "bower" task
>> bower: not-cached closure-compiler
>> bower: resolve closure-compiler
>> bower: not-cached ng-closure-runner
>> bower: resolve ng-closure-runner
>> bower: cached lunr.js
>> bower: validate lunr.js
>> bower: cached google-code-prettify
>> bower: validate google-code-prettify
>> bower: cached open-sans-fontface
>> bower: validate open-sans-fontface
>> bower: cached jquery
>> bower: validate jquery
>> bower: cached bootstrap
>> bower: validate bootstrap
Warning: Arguments to path.join must be strings Use --force to continue.

Aborted due to warnings.

为什么会失败,我该如何让它发挥作用?

最佳答案

我终于通过删除 c:\Users{用户名}\AppData\Roaming\bower\cache\packages\67772d798104a767e90491171870a089\解决了我的问题,将全局 bower 更新到 1.3.9 并通过 Node.js 命令提示符而不是常规运行系统一。

关于javascript - 运行 grunt 测试的 Angular 主存储库在 "bower"任务上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25426057/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com