Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: NPM Install fail behind proxy

Jordan free asked 6 years ago


Hello - I have been trying to get NPM to install the pro angular version of MDB behind a corporate proxy. I specified my proxies in the NPM and Git configs but still get errors. Any suggestions? Here is the NPM log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using npm@6.2.0
3 info using node@v10.9.0
4 verbose npm-session 263834979bb0958a
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall [APP-NAME].Web@1.0.0
7 info lifecycle [APP-NAME].Web@1.0.0~preinstall: [APP-NAME].Web@1.0.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 timing stage:loadCurrentTree Completed in 26ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 8ms
16 silly install loadAllDepsIntoIdealTree
17 http fetch GET 304 https://registry.npmjs.org/karma-jasmine 476ms (from cache)
18 http fetch GET 304 https://registry.npmjs.org/karma-chai 487ms (from cache)
19 http fetch GET 304 https://registry.npmjs.org/jasmine-core 494ms (from cache)
20 http fetch GET 304 https://registry.npmjs.org/@types%2fjasmine 498ms (from cache)
21 http fetch GET 304 https://registry.npmjs.org/extract-text-webpack-plugin 500ms (from cache)
22 http fetch GET 304 https://registry.npmjs.org/karma-chrome-launcher 499ms (from cache)
23 http fetch GET 304 https://registry.npmjs.org/karma-cli 501ms (from cache)
1991 silly resolveWithNewModule webpack-merge@4.1.4 checking installable status
1992 silly pacote range manifest for zone.js@^0.8.26 fetched in 7ms
1993 silly resolveWithNewModule zone.js@0.8.26 checking installable status
1994 silly pacote Retrying git command: ls-remote -h -t https://oauth2:[API-KEY]]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git attempt # 2
1995 silly pacote Retrying git command: ls-remote -h -t https://oauth2:[API-KEY]]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git attempt # 3
1996 silly fetchPackageMetaData error for ng-uikit-pro-standard@git+https://oauth2:[API-KEY]]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git Error while executing:
1996 silly fetchPackageMetaData C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://oauth2:[API-KEY]]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git
1996 silly fetchPackageMetaData
1996 silly fetchPackageMetaData undefined
1996 silly fetchPackageMetaData exited with error code: 128
1997 timing stage:rollbackFailedOptional Completed in 1ms
1998 timing stage:runTopLevelLifecycles Completed in 156995ms
1999 silly saveTree [APP-NAME].Web@1.0.0
1999 silly saveTree +-- @angular/animations@6.1.9
1999 silly saveTree +-- @angular/common@6.1.9
1999 silly saveTree +-- @angular/compiler@6.1.9
1999 silly saveTree +-- @angular/core@6.1.9
1999 silly saveTree +-- @angular/forms@6.1.9
1999 silly saveTree +-- @angular/http@6.1.9
1999 silly saveTree +-- @angular/platform-browser-dynamic@6.1.9
1999 silly saveTree +-- @angular/platform-browser@6.1.9
1999 silly saveTree +-- @angular/platform-server@6.1.9
1999 silly saveTree +-- @angular/router@6.1.9
1999 silly saveTree +-- @progress/kendo-angular-buttons@4.1.3
1999 silly saveTree | `-- @progress/kendo-angular-popup@2.4.2
1999 silly saveTree +-- @progress/kendo-angular-charts@3.3.3
1999 silly saveTree +-- @progress/kendo-angular-dateinputs@3.4.4
1999 silly saveTree +-- @progress/kendo-angular-dropdowns@3.1.0
1999 silly saveTree +-- @progress/kendo-angular-excel-export@2.1.2
1999 silly saveTree +-- @progress/kendo-angular-grid@3.7.1
1999 silly saveTree +-- @progress/kendo-angular-inputs@3.2.2
1999 silly saveTree +-- @progress/kendo-angular-intl@1.5.0
1999 silly saveTree +-- @progress/kendo-angular-l10n@1.2.1
1999 silly saveTree +-- @progress/kendo-angular-popup@2.4.2
1999 silly saveTree +-- @progress/kendo-data-query@1.5.0
1999 silly saveTree +-- @progress/kendo-drawing@1.5.7
1999 silly saveTree +-- @progress/kendo-theme-default@2.57.0
1999 silly saveTree +-- @types/node@10.11.5
1999 silly saveTree +-- angular2-router-loader@0.3.5
1999 silly saveTree +-- angular2-template-loader@0.6.2
1999 silly saveTree +-- aspnet-prerendering@3.0.1
1999 silly saveTree +-- aspnet-webpack@3.0.0
1999 silly saveTree +-- awesome-typescript-loader@5.2.1
1999 silly saveTree +-- bootstrap@4.1.3
1999 silly saveTree +-- css-loader@1.0.0
1999 silly saveTree +-- css@2.2.4
1999 silly saveTree +-- es6-shim@0.35.3
1999 silly saveTree +-- event-source-polyfill@0.0.16
1999 silly saveTree +-- expose-loader@0.7.5
1999 silly saveTree +-- file-loader@2.0.0
1999 silly saveTree +-- hammerjs@2.0.8
1999 silly saveTree +-- html-loader@0.5.5
1999 silly saveTree +-- isomorphic-fetch@2.2.1
1999 silly saveTree +-- jquery@3.3.1
1999 silly saveTree +-- json-loader@0.5.7
1999 silly saveTree +-- popper.js@1.14.4
1999 silly saveTree +-- preboot@6.0.0-beta.6
1999 silly saveTree +-- raw-loader@0.5.1
1999 silly saveTree +-- reflect-metadata@0.1.12
1999 silly saveTree +-- rxjs-compat@6.3.3
1999 silly saveTree +-- rxjs@6.3.3
1999 silly saveTree +-- style-loader@0.23.1
1999 silly saveTree +-- to-string-loader@1.1.5
1999 silly saveTree +-- typescript@3.1.1
1999 silly saveTree +-- url-loader@1.1.1
1999 silly saveTree +-- webpack-dev-middleware@3.4.0
1999 silly saveTree +-- webpack-hot-middleware@2.24.3
1999 silly saveTree +-- webpack-merge@4.1.4
1999 silly saveTree `-- zone.js@0.8.26
2000 verbose stack Error: exited with error code: 128
2000 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\util\finished.js:12:19)
2000 verbose stack at ChildProcess.emit (events.js:182:13)
2000 verbose stack at maybeClose (internal/child_process.js:961:16)
2000 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5)
2001 verbose cwd C:\Projects\VSTS\240245-[APP-NAME]\[APP-NAME]\Source\[APP-NAME].Web
2002 verbose Windows_NT 10.0.15063
2003 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
2004 verbose node v10.9.0
2005 verbose npm v6.2.0
2006 error Error while executing:
2006 error C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://oauth2:[API-KEY]]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git
2006 error
2006 error undefined
2006 error exited with error code: 128
2007 verbose exit [ 1, true ]
 

Bartłomiej Malanowski staff commented 6 years ago

How did you try to install MDB Angular?

Jordan free commented 6 years ago

Following the quick start guide for Pro: https://mdbootstrap.com/angular/5min-quickstart/ using NPM. Does that answer your question or what are you looking for?

Jordan free commented 6 years ago

I have already tried creating a new API key and have my proxies configured in git and npm.

Bartłomiej Malanowski staff commented 6 years ago

how did you set up your proxy?

Jordan free commented 6 years ago

Using the standard NPM and Git commands: npm config set proxy http://proxy:80/ -g npm config set https-proxy http://proxy:80/ -g git config --global http.proxy http://proxy.com:80/ git config --global https.proxy http://proxy.com:80/ I am going to check with our proxy team to verify we are not blocking your IP.

Bartłomiej Malanowski staff commented 6 years ago

@Jordan, please let us know if you're not blocking our IP

Jordan free commented 6 years ago

I will let you know.

Jordan free commented 6 years ago

@Bartłomiej - our network team got back to me and it turns out that they were blocking the IP. Everything is working fine now. Thanks!


Damian Gemza staff commented 6 years ago

It's good to hear that. I'm marking ticket as resolved.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: N/A
  • Browser: N/A
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No