Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10 Cygwin
ng --version. If there's nothing outputted, please runnode --version and paste the result here:
angular-cli: 1.0.0-beta.16
node: 6.7.0
os: win32 x64
cmd
npm install angular-cli
Hey guys,
every Windows user using Git installed via cygwin cannot install angular-cli right now.
The problem is that a github-repository is referenced as dependency in package.json: see package.json
When npm runs git the windows path of the cloned repository cannot be resolved because cygwin uses POSIX formatted paths.
6.Idea to get around the problem
Do you think it would be possible to release angular-cli only when all dependencies are packages hosted on npmjs.org?
Thanks in advance
Greg
It doesn't seem like this is really an issue. The linked repo is the newest version of a package that is currently on NPM, just out of date. It should be pulled in as a regular dependency as soon as the NPM version is at 0.3.2, up from 0.3.1.
To address your choice of Git software: The CLI team can't support every implementation, and Git has an official Windows binary out. Why would they fix something that honestly seems more like a Cygwin bug than a CLI or NPM bug?
Hi,
I agree that the issue is not directly related to angular-cli.
On the other hand why making an exception for compression-webpack-plugin when all other packages are referenced "directly".
I just want to make aware of this problem, because some users will run into it.
As I mentioned in the description: Referencing a npm-dependency pointing to a Git-Repository makes npm using Git.
Installing the dependencies having Git installed via cygwin causes the problem that the windows-path to the cloned repository cannot be resolved (conflict: POSIX- <-> Win32-Path).
That's why I asked for making releases only with npmjs.org hostet packages.
That would fix the problem.
Of cause @gelliott181 you are right, saying there is nothing to fix.
Here's the PR you'll want to check out for clarity: https://github.com/angular/angular-cli/pull/2365
What happened was the node-zopfli in the dep at v0.3.1 (Current NPM) broke every Windows build (You'd still be SOL without it). To fix this the dep was moved up to the unreleased version which takes care of the node-zopfli issue, but clearly causes your issue when using Cygwin. Once the new version of the compression plugin makes it onto NPM this will be fixed, but I truly think you should open up a bug with the Cygwin team detailing the problem. It will affect every NPM package that pulls from a GitHub repo, and that's not good for the Cygwin project as a whole when it comes to JS.
EDIT: Also, I really really hate beating a dead horse, but the Angular2 project clearly states you need Git proper (From Git-SCM) or the Github app (https://github.com/angular/angular/blob/master/DEVELOPER.md) to install Angular2. This pushes the Cygwin problem way out of the scope of the Angular team.
@gelliott181 Thanks having a deeper look.
The issue is more related to the decission of the team behind npm to not support Cygwin: https://github.com/npm/npm/issues/2465
I will now close this issue because we provided enough information for users having the same trouble like me.
The workaround I used is to download the Git for Windows Binary and temporarily use it with npm install
Thanks
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@gelliott181 Thanks having a deeper look.
The issue is more related to the decission of the team behind npm to not support Cygwin: https://github.com/npm/npm/issues/2465
I will now close this issue because we provided enough information for users having the same trouble like me.
The workaround I used is to download the Git for Windows Binary and temporarily use it with
npm installThanks