小编Lee*_*tje的帖子

Git:如何删除代理

我试图推送我的回购但收到错误:

fatal: unable to access 'https://github.com/myrepo.git/': Could not resolve proxy: --list        
Run Code Online (Sandbox Code Playgroud)

我已经更改了代理设置:

git config --global --unset http.proxy  
Run Code Online (Sandbox Code Playgroud)

我的全局配置设置是:

push.default=simple
http.sslverify=false
url.https://.insteadof=git://
credential.helper=cache --timeout=3600
Run Code Online (Sandbox Code Playgroud)

但仍然得到这个错误?我怎么解决这个问题?

git github

31
推荐指数
4
解决办法
6万
查看次数

我怎样才能更新npm本身?

我正在尝试更新npm本身:

npm uninstall npm -g
Run Code Online (Sandbox Code Playgroud)

回复:

unbuild npm@2.12.1
Run Code Online (Sandbox Code Playgroud)

但是当我走的时候:

npm --version
Run Code Online (Sandbox Code Playgroud)

我得到1.4.28?如何升级npm本身

windows node.js npm

18
推荐指数
3
解决办法
9290
查看次数

Karma错误 - 未知提供者:$$ asyncCallbackProvider

试图通过咕噜声运行我的业力测试,但得到一个错误:

Error: [$injector:modulerr] Failed to instantiate module ngMock due to:
Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider
Run Code Online (Sandbox Code Playgroud)

我删除了"ngAnimate",但没有解决它.如何在没有此错误的情况下运行grunt karma测试?

unit-testing karma-jasmine

9
推荐指数
1
解决办法
4948
查看次数

如何在悬停时显示工具提示?

我定义了这样的bootstrap工具提示:

 <button popover-template="myPopoverTemplate.html" data-trigger="hover" popover-title="{{dynamicPopover.title}}" class="btn btn-default">Popover With Template</button>
Run Code Online (Sandbox Code Playgroud)

我的模板看起来像这样:

<div>{{dynamicPopover.content}}</div>
<div class="form-group">
  <label>Popup Title:</label>
  <input type="text" ng-model="dynamicPopover.title" class="form-control">
</div>
Run Code Online (Sandbox Code Playgroud)

问题是悬停时工具提示没有显示?

plunkr ref:http://plnkr.co/edit/G1Cet74mVCkVYvdXRxnX?p = preview

twitter-bootstrap angularjs

6
推荐指数
1
解决办法
4万
查看次数

如何手动安装Selenium Webdriver-manager?

我正在尝试安装量角器。当我致电webdriver-manager启动时,我得到:

Selenium Standalone is not present. Install with webdriver-manager update --sta
dalone
Run Code Online (Sandbox Code Playgroud)

由于连接问题,我无法使用webdriver-manager更新安装此软件,因此II在Windows路径的文件夹中手动安装了chromedriver.exe和selenium-server-standalone-2.46.0。我还缺少其他文件吗?

更新:硒现在正在运行,但是当我尝试运行量角器conf.js时出现此错误:

09:52:37.911 ERROR - org.apache.commons.exec.ExecuteException: Execution failed
(Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\P
rogramData\work\nodejs\npm\node_modules\protractor\node_modules\chromedriver\bin
\chromedriver" (in directory "."): CreateProcess error=193, %1 is not a valid Wi
n32 application)
Run Code Online (Sandbox Code Playgroud)

angularjs selenium-webdriver protractor webdriver-manager

5
推荐指数
1
解决办法
6846
查看次数

如何在模块中测试常量?

我有以下模块:

 angular.module('config', []).constant('myconstant', somevalue);
Run Code Online (Sandbox Code Playgroud)

我想进行单元测试,所以我创建了:

describe('Constants', function () {
  var config;

  beforeEach( inject(function (_config_) {
    module('config');
    config =_config_;
  }));

  it('should return settings',function(){
    expect(config.constant('myConstant')).toEqual('somevalue');
  });

});
Run Code Online (Sandbox Code Playgroud)

现在出错:

 Error: [$injector:unpr] Unknown provider: configProvider <- config
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

angularjs karma-jasmine

1
推荐指数
1
解决办法
2726
查看次数