Skip to content

Angular CLI 6.0.0-rc.4 can't run ng build on Windows #10328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
doggy8088 opened this issue Apr 13, 2018 · 2 comments
Closed

Angular CLI 6.0.0-rc.4 can't run ng build on Windows #10328

doggy8088 opened this issue Apr 13, 2018 · 2 comments
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone

Comments

@doggy8088
Copy link
Contributor

Versions

Angular CLI: 6.0.0-rc.4
Node: 9.11.1
OS: win32 x64
Angular: 6.0.0-rc.4
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.6
@angular-devkit/build-angular     0.5.6
@angular-devkit/build-optimizer   0.5.6
@angular-devkit/core              0.5.6
@angular-devkit/schematics        0.5.6
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.0-rc.4
@schematics/angular               0.5.6
@schematics/update                0.5.6
rxjs                              6.0.0-uber-rc.5
typescript                        2.7.2
webpack                           4.5.0

Repro steps

  • npx @angular/cli@next new ng6app
  • cd ng6app
  • ng build

Observed behavior

When I run ng build in Command Prompt, it failed.

Path "g:/Projects/ng6app" must be absolute.
Error: Path "g:/Projects/ng6app" must be absolute.
    at Object.relative (g:\Projects\ng6app\node_modules\@angular-devkit\core\src\virtual-fs\path.js:112:15)
    at isInside (g:\Projects\ng6app\node_modules\@angular\cli\utilities\config.js:115:42)
    at workspace.listProjectNames.map.sort (g:\Projects\ng6app\node_modules\@angular\cli\utilities\config.js:123:25)
    at Array.sort (native)
    at getProjectByCwd (g:\Projects\ng6app\node_modules\@angular\cli\utilities\config.js:123:10)
    at Object.isWarningEnabled (g:\Projects\ng6app\node_modules\@angular\cli\utilities\config.js:230:25)
    at Function.assertTypescriptVersion (g:\Projects\ng6app\node_modules\@angular\cli\upgrade\version.js:111:23)
    at BuildCommand.validate (g:\Projects\ng6app\node_modules\@angular\cli\commands\build.js:29:27)
    at g:\Projects\ng6app\node_modules\@angular\cli\models\command-runner.js:274:39
    at Generator.next (<anonymous>)

image

**When I open this folder and open Terminal to run the same command, it works! **

image

Desired behavior

It suppose can run these command both in Command Prompt and in Terminal of VSCode.

Mention any other details that might be useful (optional)

I tried to output the problem path. In Command Prompt, the path start with 'G:/'. In Terminal window of the VSCode, it do start with '/'. (Why?)

image

@hansl hansl added this to the v6.0.0 milestone Apr 13, 2018
@hansl hansl added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Apr 13, 2018
doggy8088 added a commit to doggy8088/devkit that referenced this issue Apr 13, 2018
The drive letter could be lower case.

This PR fix angular/angular-cli#10328
@doggy8088
Copy link
Contributor Author

@hansl bug fixed. please check for angular/devkit#697

doggy8088 added a commit to doggy8088/devkit that referenced this issue Apr 13, 2018
The Windows drive letter could be lower case.

This PR fix angular/angular-cli#10328
doggy8088 added a commit to doggy8088/devkit that referenced this issue Apr 14, 2018
The Windows drive letter could be lower case.

This PR fix angular/angular-cli#10328
hansl pushed a commit to angular/devkit that referenced this issue Apr 15, 2018
The Windows drive letter could be lower case.

This PR fix angular/angular-cli#10328
hansl pushed a commit that referenced this issue Jun 6, 2018
The Windows drive letter could be lower case.

This PR fix #10328
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

2 participants