Skip to content
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

ng <command> 0.8.0-beta.3 is broken on windows #11928

Closed
alan-agius4 opened this issue Aug 17, 2018 · 1 comment · Fixed by #11929
Closed

ng <command> 0.8.0-beta.3 is broken on windows #11928

alan-agius4 opened this issue Aug 17, 2018 · 1 comment · Fixed by #11929

Comments

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Aug 17, 2018

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x] new
- [x] build
- [x] serve
- [x] test
- [x] e2e
- [x] generate
- [x] add
- [x] update
- [x] lint
- [x] xi18n
- [x] run
- [x] config
- [x] help
- [x] version
- [x] doc

Versions

λ ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 6.2.0-beta.3
Node: 8.9.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.8.0-beta.3
@angular-devkit/core         0.8.0-beta.3
@angular-devkit/schematics   0.8.0-beta.3
@schematics/angular          0.8.0-beta.3
@schematics/update           0.8.0-beta.3
rxjs                         6.2.2
typescript                   2.9.2

Repro steps

The latest beta version (0.8.0-beta.3) is broken on windows

npm i -g @angular/cli@next

Use any command example ng --version

The log given by the failure

λ ng --version
ENOENT: no such file or directory, open 'c:\C\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\commands\version.json'
Error: ENOENT: no such file or directory, open 'c:\C\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\commands\version.json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at findCommand (C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\models\command-runner.js:302:31)
    at Object.<anonymous> (C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\models\command-runner.js:80:31)
    at Generator.next (<anonymous>)
    at C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\models\command-runner.js:14:71
    at new Promise (<anonymous>)
    at __awaiter (C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\models\command-runner.js:10:12)
    at Object.runCommand (C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\models\command-runner.js:51:12)
    at C:\ProgramData\nvm\v8.9.1\node_modules\@angular\cli\lib\cli\index.js:38:58

Desired functionality

it works

Mention any other details that might be useful

This issue is related to the normalization of paths which fs is unable to read

hansl pushed a commit that referenced this issue Aug 17, 2018
`fs` is unable to read the normalized paths from `@angular-devkit/core`  on `windows` as the disk drive is replaced from `c:/` to `/c/`

Closes #11928
@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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant