npm intsllation 在为 md bootstrap 构建 aws 代码时失败

npm intsllation failure at aws code build for md bootstrap

我正在尝试在我的 angular 应用程序中使用 mdb pro。 所以,在过去的 3 个月里,一切都对我有用。

以下是 package.json 中替换了标记的行

"ng-uikit-pro-standard": "git+https://oauth2:mytoken@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git",

以下是我现在看到的输出。我在 aws codebuild 上 运行。

npm ERR! Error while executing:

npm ERR! /usr/bin/git ls-remote -h -t https://oauth2:mytoken@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git

npm ERR!

npm ERR! fatal: unable to access 'https://oauth2:mytoken@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

npm ERR!

npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2018-12-02T14_05_27_185Z-debug.log

[Container] 2018/12/02 14:05:27 Command did not exit successfully npm install exit status 1

[Container] 2018/12/02 14:05:27 Phase complete: INSTALL Success: false

[Container] 2018/12/02 14:05:27 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npm install. Reason: exit status 1

我发现生成的令牌有过期时间。

我生成了一个新令牌并按照此处的说明进行操作。

https://mdbootstrap.com/docs/angular/getting-started/quick-start/

希望对某人有所帮助。