Skip to content

ERROR when trying to run ng new when behind a corporate proxy #2685

Closed
@tpeter29

Description

@tpeter29

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7 enterprise edition

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.16
node: 4.6.0
os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

No, I'm trying to create a project using "ng new" and it is unable to clone from github. I've set the http/https proxy settings in the .npmrc and .gitconfig files. I've include authenticate and I've even tried to use CNTLM to manage proxy authentication. It states the proxy is open and does not require another proxy. I am able to access github.com from chrome and IE.

Note: this all works fine when I'm in the office and we can directly connect to github. The only issue is when I telework and I have to go through the proxy. One thing we noticed is the IP address going requesting the files from github is my local IP address and not the proxy. I've set the config file to use the proxy, but it still doesn't work.

The log given by the failure.

Normally this include a stack trace and some more information.

4120 verbose stack Error: Command failed: git -c core.longpaths=true clone --template=C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes\git-git.colasdn.top-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5
4120 verbose stack Cloning into bare repository 'C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes\git-git.colasdn.top-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5'...
4120 verbose stack
4120 verbose stack at ChildProcess.exithandler (child_process.js:213:12)
4120 verbose stack at emitTwo (events.js:87:13)
4120 verbose stack at ChildProcess.emit (events.js:172:7)
4120 verbose stack at maybeClose (internal/child_process.js:829:16)
4120 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
4121 verbose cwd c:\WebstormProjects\AngularTest
4122 error Windows_NT 6.1.7601
4123 error argv "C:\Program Files\nodejs\node.exe" "C:\Users\peterson_t\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
4124 error node v4.6.0
4125 error npm v3.10.8
4126 error code 128
4127 error Command failed: git -c core.longpaths=true clone --template=C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes\git-git.colasdn.top-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5
4127 error Cloning into bare repository 'C:\Users\peterson_t\AppData\Roaming\npm-cache_git-remotes\git-git.colasdn.top-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5'...
4128 error If you need help, you may report this error at:
4128 error <https://github.com/npm/npm/issues
log.txt

4129 verbose exit [ 1, true ]

Mention any other details that might be useful.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions