The js execution environment is how window, executes in nodejs.

The

js file cannot be modified. What kind of module does
need for nodejs?
or do you need nodejs to simulate the browser environment?
thanks not only to those who have seen the questions, but also to the Daniel who answered the questions for help!

Mar.04,2021

The global variables in the

browser are all attributes of window .

The global variables in

nodejs are attributes of global .


you install node, and then run it to see what's wrong, or you paste the code and I'll see.


because there is no specific code, it is hard to say. If the window object is not required by the program and the relevant modules will not be used, you can set window to global earlier to try.


is there a solution? please let us know

.
Menu