Closed
Description
Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7
- Versions. Please run
ng --version
. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here.
angular-cli: 0.1.0
node: 5.4.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.
Issue is almost the same as it was in #1090, but I'm using node 5, instead of node 3, so the solution provided in that issue does not help. Also you need to have a base path of about 50 characters for the problem to occur.
- Go to directory: C:\myproject\myproject\subproject\src\main\resources\web
- Create project: ng new --skip-git myproject
- Try to delete it and see how it fails
Here is one of the problematic paths:
C:\MYPROJ1\MYPROJ1\SUBPRO1\src\main\web\NODE_M1\ANGULA1\NODE_M1\EMBER-1\NODE_M1\BROCCO1\NODE_M1\BABEL-1\NODE_M1\REGENE1\NODE_M1\defs\NODE_M1\yargs\NODE_M1\cliui\NODE_M1\CENTER1\NODE_M~1\ALIGN-1\NODE_M1\kind-of\node_modules\is-buffer
- Problems seem to occur only under node_modules\angular-cli.
- angular-cli paths are about 200 characters, so your base path needs to be about 50 characters for you to see the problem. If you create the project directly to the C-root, you won't see the problem.
- While the path in this example if invented just for this purpose, this problem happened in real life project (I admit that the project could be structured better, but this is just what real life provides).
If you can't do anything about the 200 character long path, you could at least warn about this when creating a project or at least mention it in the documentation. But preferred solution would be not to create so long paths.