atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

Windows 8.1 x64 install error #19

Closed Arcanemagus closed 6 years ago

Arcanemagus commented 8 years ago

Somewhat similar to #9, but a different stack trace.

It looks like the relevant part is MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0"..

C:\Users\Landon\Documents\GitHub-release\language-markdown\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Landon\Documents\GitHub-release\language-markdown\node_modules\runas
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i
nstall" "runas"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the runas@3.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Landon\Documents\GitHub-release\language-markdown\npm-debug.log

And the relevant npm-debug.log.

50Wliu commented 8 years ago

What version of Visual Studio are you using? If not 2010, can you try setting the GYP_MSVS_VERSION env variable?

Arcanemagus commented 8 years ago

I'm not using any version of Visual Studio, I was simply trying to install the language-markdown package. That package depends on 'node-pathwatcher`, which utilizes this package to run dd as admin on darwin platforms here.

As it looks like the base package is only using that to get a list of the file contents this chain seems a bit ridiculous. In any case, does this package require VS to install on Windows?

50Wliu commented 8 years ago

In any case, does this package require VS to install on Windows?

Yes to install it by itself. I don't think VS is required to install packages relying on this though...

lee-dohm commented 6 years ago

All repositories in the atom-archive organization are unmaintained and deprecated. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!