stata-exec icon indicating copy to clipboard operation
stata-exec copied to clipboard

Unable to install Windows-build-tools

Open abarenbe opened this issue 6 years ago • 4 comments

Going through the windows install steps, after installing Node.js 7.4 and running

npm install --global --production windows-build-tools From the Window Power Shell (ran as administrator) I get this error message:

SyntaxError: Unexpected token function at Object.exports.runInThisContext (vm.js:78:16) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19)

Any help would be appreciated.

abarenbe avatar Nov 09 '18 00:11 abarenbe

I got the same problem. I gave up the version of Node.js that the author recommended (v7.4.0) but installed a recent version (v10.13.0). It also comes with a newer version of npm (v6.4.1). It actually works fine with stata-exec

robsunch avatar Nov 15 '18 08:11 robsunch

The issue is that the Node version was current for the version of Atom when I originally wrote the README. Since then, Atom has been updated and uses a newer version of Node.

kylebarron avatar Nov 15 '18 16:11 kylebarron

If someone would like to submit a PR with new instructions I'd take a look

kylebarron avatar Jan 22 '19 15:01 kylebarron

Did anybody find a solution? Please share it :-)

alvarocalderon avatar May 25 '21 09:05 alvarocalderon