evanw / node-source-map-support

Adds source map support to node.js (for stack traces)
MIT License
2.16k stars 223 forks source link

Problems with Node 12 on Windows #289

Open Psychosynthesis opened 3 years ago

Psychosynthesis commented 3 years ago

Somethere in code of node-source-map-support there is a check like (env.SOME_VAR === undefinded) But in windows there is no global variable env, so this code falls out with an error. Also, Windows 7 is not supported by the latest versions of NodeJS (14 and higher), so there is no way to update the Node.

P.S. Perhaps the problem is in the code of some kind of dependency (since I could not find such a code in the sources of this repository), but the error is returned by source-map-support = (

What to fix: Change everywhere in the code env. on process.env.