Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Node.js Date: Thu, 14 Oct 2021 15:02:54 +0100 Organization: A noiseless patient Spider Lines: 46 Message-ID: <87r1cnaelt.fsf@bsb.me.uk> References: <5f57e300-fd03-466c-96af-75fd67f72420n@googlegroups.com> <87wnmfap0m.fsf@bsb.me.uk> <30351810-4bdc-416a-8cb9-3acc945a7542n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="fbb8bf2b600e85e3548ceab94cedde0b"; logging-data="14062"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RtcfPyqJudJbS680gybp8jAjKMomZDJg=" Cancel-Lock: sha1:ByubS3fYQnOMEa/xBtaWmBuWI3k= sha1:omzkQmWdMc0giYlow3rxnEVzVYw= X-BSB-Auth: 1.69498bed00ad70e80a22.20211014150254BST.87r1cnaelt.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:40478 Jonas Thörnvall writes: > torsdag 14 oktober 2021 kl. 12:18:05 UTC+2 skrev Ben Bacarisse: >> Jonas Thörnvall writes: >> >> >> On Thursday, 14 October 2021 at 04:24:19 UTC+2, jonas.t...@gmail.com wrote: >> >> > I finally decided "try" learn a little node.js. >> >> > So i installed according to. >> >> > https://nodejs.org/en/docs/guides/getting-started-guide/ >> >> > >> >> > And simply copied app.js to my intetpub directory. >> > I am not sure what braindead monkey wrote that intro but.... >> > >> > "Now, run your web server using node app.js. Visit >> > http://localhost:3000 and you will see a message saying "Hello World". >> The phrase "run your web server using node app.js", with "node app.js" >> highlighted so it is visually distinct form the English text, will be >> understood by most readers to mean that you have to run a program (node) >> passing it an argument (app.js) however it is that you do such things on >> your system. >> >> It's not absurd that you did not know what was meant, but it's very rude >> to conclude that the fault is entirely that of the "braindead monkey" >> who wrote this one-page quick guide. > > Well i am all about the easy way, both doing an explaining. But as you > say run your webserver using node app.js just isn't sufficial. I didn't think that that is what I said. > At least run "node app.js" to make some context, because node is an > executable and the argument passed is app.js. That's what the coloured background is supposed to suggest. There's no obvious reason to suppose that quotes are clearer, especially as if you were to actually write the quotes it would not work. > So better yet would been run node.exe with parameter app.js from > directory where app.js resides. Except that would be confusing when the program is called node rather than node.exe. As you can see, it's not easy to cater for every possible misunderstanding. -- Ben.