In an .mjs file, you do not use require. You use import. Try:
import fs from "fs";
More info:
https://nodejs.org/api/esm.html
-John
On Sun, Jun 7, 2020, 9:33 AM Matthew Hamilton wrote:
> node.js 14.4.0 macOS Catalina, Visual Studio Code debugging. Line 11 in my
> app.mjs file is var FileSys
For some reason, it seems that your
/var/server/models/productModel.(mjs|js|json) file is not being found
by your application. Make sure that it is in place on the server, and
that it is spelled (and capitalized) correctly.
-John
On Fri, Mar 20, 2020 at 1:46 AM Salomon Thomas wrote:
>
> Hi,
>
Hey Anders,
On Sun, Apr 29, 2018, 2:16 PM Anders Thorsby wrote:
> Client works as expected in NodeJS but in Electron it will not reconnect.
>
What version of node is being used in your electron app?
John Shaver
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.gith
You can use a for loop for this:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/
Reference/Statements/for
Use the initialization expression to set the index you want to start at
(var i = 2) then test for the end of the array (i < process.argv.length) in
the condition expression, incremen
interfaces, you could create a new server for each address to
call bind on. Maybe I'm completely off base, there. Hope it helps.
-John Shaver
On Tue, Sep 20, 2016 at 8:48 AM, Paul J R wrote:
> Hi All,
>
> For the last couple of days i've been attempting to implement a DHCP ser
Hey Marc,
Generate is not an array, but an object (which can be used as a key/value
store). There are a couple of possible problems, assigning to the object
instead of a property on the object, or assigning everything with the same
key.
Unfortunately, without more code (like the code that assig
This all seems good... It should be able to find the module where it is.
What command are you using to run your script and where are you invoking it
from?
-John
On May 13, 2015 11:55 AM, "Michael Deremer"
wrote:
> I have nodejs installed on a debian distro on my raspberry pi. I have
> installed
On Dec 12, 2014 5:04 PM, "Sachinthya Wagaarachchi" wrote:
>
> I am starting to learn Node and MEANJS at the same time, and want to have
a development folder that is independent. I don't know how to go about
it... I have used Mongo and AngulaJS with Pyramid. Here's what I think I
want. (Using linux
What you have there looks correct to me, as far as the module. Did
you write the script that accepts the command line parameters,
requires the module and then passes the parameters into the module?
>From the lesson description:
This problem is the same as the previous but introduces the conc
On Thu, Oct 30, 2014 at 3:37 AM, Floby wrote:
> For example, Karma uses PhantomJS which is a binary executable (not
> portable) and also uses socket.io which in turn uses ws which uses a
> compiled addon (not portable).
That would be a problem too. I wasn't actually using/installing the
modules
One problem I've seen with node running in a linux vm off of the host
filesystem is that VirtualBox (and probably most virtualization software)
disables symlinks on the shared filesystem for security reasons. npm uses
symlinks when installing(probably to prevent duplicating files of the same
modul
Just a heads up, people may have missed this. Gmail labeled it as a
phishing email and spammed it.
-John
On Oct 8, 2014 11:21 AM, "Arun Chandrasekaran"
wrote:
> eBay/PayPal is organizing a hackathon at Austin on October on 18-19 and
> would love to have students and folks from other companies i
12 matches
Mail list logo