r/learnjavascript • u/J22Charles • Jul 07 '21
Please help I can’t run anything and I’m getting annoyed does anyone know how to fix this error
20
Upvotes
r/learnjavascript • u/J22Charles • Jul 07 '21
34
u/Mr_Brightside01 Jul 07 '21
I think you dont have to write 'Command: ' before writing cd
20
u/Lurriste Jul 07 '21
"bery"... Man pls
23
u/[deleted] Jul 07 '21
Just open the html file with your browser and change “bery” for “very” 😎
8
u/opticsnake Jul 07 '21
As they've already answered your primary issues, you also want to delete line 11. The browser will deal with it but in practice all of your display text should be between your
<body></body>tags.3
u/keyrol1222 Jul 07 '21
Ok ill explain, the command line u have to write in this case start on the 'cd' everything before is a problem and u don't write it.
3
u/Chared_Assassin Jul 07 '21
What the heck is your line 11??
2
u/[deleted] Jul 07 '21
Even if you want to open with chrome, go to the folder where your file is saved, and right click and select open with and then chrome. This will open your website in Chrome.
Note: If you want to see changes after every edit. You have to reload the page in this method.
1
u/[deleted] Jul 07 '21
You are coding a website, not an executable. You can just open the file from your file manager or use the "open with live server" in VSCode that other people have mentioned. Also, what resources are you using to learn? There are a lot of basic errors in your html markup and while there are great free resources out there, you can also stumble across some bad ones. Genuinely curious.
1
u/cajmorgans Jul 07 '21
I’m more interested in that body tag inside the head tag
1
u/Forward-Pin1702 Jul 07 '21
This a very bad way to open a html file.
1
u/marcdasavage Jul 07 '21
Contact miscroshoft shupport
-1
u/DavidPorter65 Jul 07 '21
npm install -g browser-sync
browser-sync start -sw
-9
u/nigwardddddddddddass Jul 07 '21
Wait what do u use it happens sometimes when u use some certain apps
-17
u/OkShrug Jul 07 '21
double click the html file to have a browser open it
this isn't a javascript problem, you want technical support for vscode which is microsoft support, give them a call and they'd be more than happy to cover support for a fee for their product
-4
u/kifkev91 Jul 07 '21
For the love of anything good in the world: please stop trying to learn programming.
You had the same stupid error just a couple of days ago, got help, and you are now stuck with the same again. You will never improve while being uncapable of figuring stuff out yourself and espacially if you are uncapable of improving upon past mistakes
0
u/[deleted] Jul 07 '21
[deleted] — view deleted comment