1

Getting this error while run nodejs project. Following below commands.

nodemon --exec src/app.js
nodemon --exec src/server.js

Getting this error while run nodejs project

Below are the dependency

Dependancy

user692942
  • 16,398
  • 7
  • 76
  • 175
rvchauhan
  • 89
  • 8
  • Seems like your `.js` files are associated with the Windows Scripting Host (`wscript.exe`). – user692942 Apr 25 '22 at 13:39
  • Does this answer your question? [Windows Script Host Error: Invalid character - Code:800A03F6 - Source: Microsoft JScript compilation error](https://stackoverflow.com/questions/70045198/windows-script-host-error-invalid-character-code800a03f6-source-microsoft) *(Answer points to file association issue)*. – user692942 Apr 25 '22 at 13:41

1 Answers1

1

Here I have resolved the issue by installing ESM.

npm install --save esm

And then run

node -r esm src/server.js
rvchauhan
  • 89
  • 8