小编Gau*_*shn的帖子

Npm 失败并返回代码:4294963238,在 VSTS 的 CI 中

我正在尝试在 VSTS 上为角度应用程序配置 CI/CD。但是由于上述错误,构建失败了。所以,有两个 npm 任务;

  • npm install - 成功执行

  • npm run-script build -这个失败了

    这是第二个任务的完整日志:

    2018-07-07T00:23:02.3521053Z ##[section]开始:npm run build

2018-07-07T00:23:02.3525327Z

2018-07-07T00:23:02.3525444Z Task         : npm
2018-07-07T00:23:02.3525589Z Description  : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2018-07-07T00:23:02.3525700Z Version      : 1.0.17
2018-07-07T00:23:02.3525777Z Author       : Microsoft Corporation
2018-07-07T00:23:02.3525891Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2018-07-07T00:23:02.3525989Z ==============================================================================
2018-07-07T00:23:02.8106804Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" --version"
2018-07-07T00:23:03.8647145Z 5.6.0
2018-07-07T00:23:05.7712361Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" config …
Run Code Online (Sandbox Code Playgroud)

azure-devops azure-pipelines

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

result.user.link 不是 angular firebase 中的函数

无法将 Facebook 帐户与现有的 Firebase 帐户相关联。我目前有一个使用 google 凭据创建的 firebase 帐户。现在我想将一个 facebook 帐户与这个现有的 firebase 帐户(两者都具有相同的凭据)相关联,我按照这里提到的步骤操作:https ://firebase.google.com/docs/auth/web/facebook-login

但最后,当我调用方法“result.user.link(pendingCred).then( (user) => { .. }”来链接帐户时,我在控制台中收到以下错误:

Uncaught TypeError: result.user.link is not a function
at auth.service.ts:188
at e.g (auth.js:23)
at Yb (auth.js:26)
at Ub (auth.js:26)
at z.webpackJsonp.../../../../@firebase/auth/dist/auth.js.h.Mb (auth.js:25)
at Cb (auth.js:19)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:392)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (zone.js:142)
at zone.js:873
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
Run Code Online (Sandbox Code Playgroud)

这是我的代码

loginFacebook(): Promise<any> {
    return this.afAuth.auth.signInWithPopup(new firebase.auth.FacebookAuthProvider())
    .then( (result) => {
        this.registerUserName = result.user.displayName;
        this.authDbUsername = result.user.email.replace('.', '');
        // this.setLoggedinUser(user)
    })
    .catch ( (error) …
Run Code Online (Sandbox Code Playgroud)

javascript firebase-authentication angular

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