1
私は、角度cliとJenkinsでangular4プロジェクトを構築しようとしています。私のMacBook Proではローカルでプロジェクトが正常に構築されますが、Jenkinsでビルドスクリプトを実行すると失敗し、次のエラーがスローされます。 Jenkinsの設定などで問題が発生しているようですが、Jenkinsは自分のローカルコンピュータで正常に構築されていればプロジェクトを構築できるはずです。これがエラーメッセージです。どのようにこれを解決することができますか?エラーメッセージはかなり長いので、私は最も関連性が高いと思われる部分だけを含んでいます。ありがとう!なぜジェンキンスはそれに失敗してビルドに失敗しますかAngels4プロジェクトではSassファイルをダウンロードできませんか?
> [email protected] install /ci/work/jenkins/workspace/vardgivare-frontend/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-48_binding.node":
ETIMEDOUT
Timed out attemping to establish a remote connection
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> [email protected] postinstall /ci/work/jenkins/workspace/vardgivare-frontend/node_modules/node-sass
> node scripts/build.js
あるが、それはプロキシの背後にありますか? –
はい私はそれが信じています – Dan