Windows 7 Installation error - error MSB8020 #129

Closed
blowsie opened this Issue Oct 7, 2014 · 6 comments

Comments

Projects
None yet
3 participants
@blowsie

blowsie commented Oct 7, 2014

I get the following error when try to install contextify on windows 7.

Its worth noting that this has worked in the past, it broke when I did an update (of contextify).

PS D:\Projects\uk.deploy\node-dir-compare\node-dir-compare> npm install contextify
npm WARN package.json node_dir_compare@0.0.0 No repository field.
npm WARN package.json batchflow@0.4.0 homepage field must be a string url. Deleted.
npm WARN package.json path@0.4.9 path is also the name of a node core module.

> contextify@0.1.9 install D:\Projects\uk.deploy\node-dir-compare\node-dir-compare\node_modules\contextify
> node-gyp rebuild


D:\Projects\uk.deploy\node-dir-compare\node-dir-compare\node_modules\contextify>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120
') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...".
Install v120 to build using the v120 build tools. [D:\Projects\uk.deploy\node-dir-compare\node-dir-compare\node_modules\contextify\build\contextify.vcxpro
j]
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:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Projects\uk.deploy\node-dir-compare\node-dir-compare\node_modules\contextify
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! contextify@0.1.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.9 install script.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify"
npm ERR! cwd D:\Projects\uk.deploy\node-dir-compare\node-dir-compare
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\Projects\uk.deploy\node-dir-compare\node-dir-compare\npm-debug.log
npm ERR! not ok code 0
PS D:\Projects\uk.deploy\node-dir-compare\node-dir-compare>

@blowsie blowsie changed the title from Another Windows 7 Installation error to Windows 7 Installation error - error MSB8020 Oct 7, 2014

@blowsie

This comment has been minimized.

Show comment
Hide comment
@blowsie

blowsie Oct 7, 2014

Its worth noting that I have Visual Studio 2012 & Visual Studio 2013 installed.
Also I have created variables to the MSbuild version 12 in my path and VCTargets path

blowsie commented Oct 7, 2014

Its worth noting that I have Visual Studio 2012 & Visual Studio 2013 installed.
Also I have created variables to the MSbuild version 12 in my path and VCTargets path

@blowsie

This comment has been minimized.

Show comment
Hide comment
@blowsie

blowsie Oct 7, 2014

After some reading elsewhere, I discovered you can pass in a vs version into npm.

npm install contextify --msvs_version=2012 - works
npm install contextify --msvs_version=2013 - fails

blowsie commented Oct 7, 2014

After some reading elsewhere, I discovered you can pass in a vs version into npm.

npm install contextify --msvs_version=2012 - works
npm install contextify --msvs_version=2013 - fails

@sparqueur

This comment has been minimized.

Show comment
Hide comment
@sparqueur

sparqueur Nov 5, 2014

What do you mean by "MSbuild version 12 in my path and VCTargets path" ? Thanks in advance

What do you mean by "MSbuild version 12 in my path and VCTargets path" ? Thanks in advance

@blowsie

This comment has been minimized.

Show comment
Hide comment
@blowsie

This comment has been minimized.

Show comment
Hide comment
@blowsie

blowsie Dec 24, 2014

To set this into your config
npm config set msvs_version 2012
or
npm config set msvs_version 2013

blowsie commented Dec 24, 2014

To set this into your config
npm config set msvs_version 2012
or
npm config set msvs_version 2013

@toddpi314

This comment has been minimized.

Show comment
Hide comment
@toddpi314

toddpi314 Mar 13, 2015

FYI, the npm config variable ended up resolving in cases where multiple versions of VS are installed.

FYI, the npm config variable ended up resolving in cases where multiple versions of VS are installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment