+ 5

In ver 3.4.7, for Node.js code, what is the (right way to) use (of) the "RUN" button?

I mean, it even shows error for the most simplest Express.js boilerplate.... https://code.sololearn.com/cpZ9mpJRofuS/?ref=app

7th Aug 2020, 2:58 PM
Gordon
Gordon - avatar
7 Answers
+ 3
You mean work from code playground? We're having problem to install npm packages on playground node, still looking for solution, so far there is still no way to install any packages on playground, i suspect it's due to Sololearn set execution timeout too short. https://www.sololearn.com/discuss/2432540/?ref=app
8th Aug 2020, 6:24 AM
CalviÕ²
CalviÕ² - avatar
+ 5
Gordon, I tried using simple http server(http is core library comes with node) and it still doesn't work. šŸ˜ Devs added nodejs but it is worthless (for now at least)
9th Aug 2020, 6:36 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 4
šŸ”« Rick Grimes Ya....Can't run http server like usual Node.js server šŸ¤·ā€ā™‚ļø But I am told that the console works better than web code. So we can perceive it as a Dev Tool šŸ˜‚
9th Aug 2020, 7:00 AM
Gordon
Gordon - avatar
+ 3
For express routing methods, .get Callback function should be run with a response method, eg. (req,res) => { res.send('connected'); }
8th Aug 2020, 5:14 AM
CalviÕ²
CalviÕ² - avatar
+ 3
Oh I see, thanks
8th Aug 2020, 6:38 AM
Gordon
Gordon - avatar
+ 2
šŸ”« Rick Grimes Useless, indeed. šŸ˜‘šŸ¤£
9th Aug 2020, 7:39 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Oh, my bad šŸ˜… but res.send() doesn't work too šŸ§
8th Aug 2020, 6:11 AM
Gordon
Gordon - avatar