question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
Airbladercommented, Apr 12, 2019

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.

1reaction
santoshyadavdevcommented, Jun 6, 2019

Hi @kapunahelewong ,

I would be happy to do it if he says no.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found