小编Ozz*_*lsh的帖子

从私有 Bitbucket 安装 NPM 模块时主机密钥验证失败

我正在尝试从私有 Bitbucket 存储库安装 NPM 模块。

我可以npm install在我的系统上本地成功运行,但它在服务器上失败。

错误是:

npm ERR! Error while executing:
npm ERR! /bin/git ls-remote -h -t ssh://git@bitbucket.org/myorg/my-repo.git
npm ERR! 
npm ERR! 
npm ERR! (ssh-askpass:10260): Gtk-WARNING **: cannot open display: :0.0
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128
Run Code Online (Sandbox Code Playgroud)

奇怪的是,手动克隆服务器上的 repo …

git npm

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

cypress 中未定义 window 属性

我正在使用 Cypress 和 Meteor。

我需要Meteor窗口上的对象来调用Meteor.loginWithPassword

我想用它来跳过每次使用 UI 登录。我已尝试以下操作,但运行时 Meteor 不在窗口上。

cy.window()
  .then((window) => {
      console.log(window.Meteor);
   });
Run Code Online (Sandbox Code Playgroud)

javascript testing cypress

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

标签 统计

cypress ×1

git ×1

javascript ×1

npm ×1

testing ×1