Açısal tohum projesini ayarlamak için npm aracılığıyla bower'ı yüklemeye çalışıyorum ancak şirket proxy'm neden olduğu hatalara yol açıyorum.Bower çağrılar, kurumsal proxy tarafından engellenir ve sonra güncelleştirirken hatalar alırsınız .bowerrc
retry Request to https://bower.herokuapp.com/packages/angular failed with ECONNRESET, retrying in 1.2s
bower retry Request to https://bower.herokuapp.com/packages/angular-route failed with ECONNRESET, retrying in 1.4s
bower retry Request to https://bower.herokuapp.com/packages/angular-loader failed with ECONNRESET, retrying in 1.9s
bower retry Request to https://bower.herokuapp.com/packages/angular-mocks failed with ECONNRESET, retrying in 1.3s
bower retry Request to https://bower.herokuapp.com/packages/html5-boilerplate failed with ECONNRESET, retrying in 1.8s
bower retry Request to https://bower.herokuapp.com/packages/angular failed with ECONNRESET, retrying in 2.7s
Ben vekil ilgili ayrıntılar eklemek için benim .bowerrc dosyasını düzenlemek Başka stack overflow post gördüğüm tavsiye takip çalıştık. Bunu yaptıktan sonra ancak, bu hatayı alıyorum:
/Users/t821714/Projects/customer/customer/node_modules/bower/node_modules/bower-config/lib/util/rc.js:56
throw error;
^
Error: Unable to parse /Users/t821714/Projects/customer/customer/.bowerrc: Unexpected token p
güncellenen .bowerrc şuna benzer:
{
"directory": "app/bower_components",
"registry": "http://bower.herokuapp.com",
"proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/",
"https-proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/",
}
kimse benim .bowerrc güncelleme ile yanlış neler olduğunu önerebilirsiniz? Veya sorunu düzeltmenin daha iyi bir yolunu önerin.
bulunan aşağıdaki özellik ekleyerek! –
"strict-ssl": false iş yaptı – codeMan
thats gerçekten beni kurtardı :) –