Problem in Angular "my-app" instructions in Windows, try #2
See original GitHub issueπ Docs or angular.io bug report
Description
On web page https://angular.io/guide/quickstart, there are instructions
Open ./src/app/app.component.ts.
Change the title property from 'my-app' to 'My First Angular App'.
On Windows this fails because the example was created by default (following instructions) in folder C:\Windows\System32\my-app, which cannot be written because it is in the protected Windows directory tree.
π¬ Minimal Reproduction
Whatβs the affected URL?**
https://angular.io/guide/quickstart
Reproduction Steps**
Follow the instructions given on Windows 10.
Expected vs Actual Behavior**
Expected: no problem Actual: cannot edit the file ./src/app/app.component.ts
π·Screenshot
Not needed: standard file system error on trying to save edited file
π₯ Exception or Error
standard file system error on trying to save edited file
π Your Environment
Browser info
Anything else relevant?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Angular 9 ng new myapp gives error The Schematic workflow ...
Open a new terminal window, browse to where you want your new project and try the 'ng new` command again.
Read more >Deployed Angular web app keeps getting "You do not have ...
I deployed an Angular app to Azure using VS Code. I added a web.config and made sure it was deployed, but still I...
Read more >Setting up the local environment and workspace - Angular
Run the applicationlink Β· Navigate to the workspace folder, such as my-app . Β· Run the following command: content_copy cd my-app ng serve...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
There are two main reasons: you can't apply two isolated scope directives to an element, and you may encounter issues with nesting /...
Read more >Angular Modules - W3Schools
A module is created by using the AngularJS function angular.module ... The "myApp" parameter refers to an HTML element in which the application...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
AFAIK this is only the default cwd if you start the terminal with administrator rights β which definitely is a bad idea (and not suggested by the docs).
Nonetheless, it probably wouldnβt hurt to add a hint that the command will create a folder in the cwd and that the user should first cd to whichever location they prefer first.
Hi @kapunahelewong ,
I would be happy to do it if he says no.