node-gyp: node-gyp msbuild error
I already noticed many of them are facing the same issue, But already all the solutions you provided, This has detailed configuration of My System, OS : Window 8.1 VS : 2012 Professional Python : python 2.7.4
Error:
$ npm install webkit-devtools-agent --python=C:\Python27\python.exe --msvs_version=2012
|
> ws@0.4.31 install d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws>node "c:\Program Files (x86)\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.
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj(18,3): error MSB4019: The impo rted project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that t he file exists on disk.
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj(18,3): error MSB4019: The impo rted project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that t he file exists on disk.
> webkit-devtools-agent@0.3.1 install d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
> node-gyp rebuild
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent>node "c:\Program Files (x86)\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.
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\profiler.vcxproj(18,3): error MSB4019: The imported project "d:\M icrosoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on
disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files (x86)\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:820:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! webkit-devtools-agent@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webkit-devtools-agent@0.3.1 install script.
npm ERR! This is most likely a problem with the webkit-devtools-agent 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 webkit-devtools-agent
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "webkit-devtools-agent" "--python=C:Python27python.exe" "--msvs_version=2012"
npm ERR! cwd d:\DF\July16\df-nodejs-api
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Detailed Verbose Error:
$ npm install webkit-devtools-agent --python=C:\Python27\python.exe --msvs_version=2010 --verbose
npm info it worked if it ends with ok
npm verb cli [ 'c:\\Program Files (x86)\\nodejs\\node.exe',
npm verb cli 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli 'webkit-devtools-agent',
npm verb cli '--python=C:Python27python.exe',
npm verb cli '--msvs_version=2010',
npm verb cli '--verbose' ]
npm info using npm@1.4.28
npm info using node@v0.10.36
npm info shrinkwrap file "d:\\DF\\July16\\df-nodejs-api\\npm-shrinkwrap.json"
npm verb readDependencies returned deps { async: 'https://registry.npmjs.org/async/-/async-0.9.2.tgz',
npm verb readDependencies returned deps bluebird: 'https://registry.npmjs.org/bluebird/-/bluebird-2.9.34.tgz',
npm verb readDependencies returned deps boom: 'https://registry.npmjs.org/boom/-/boom-2.8.0.tgz',
npm verb readDependencies returned deps dotenv: 'https://registry.npmjs.org/dotenv/-/dotenv-0.5.1.tgz',
npm verb readDependencies returned deps hapi: 'https://registry.npmjs.org/hapi/-/hapi-8.6.1.tgz',
npm verb readDependencies returned deps 'hapi-swagger': '0.7.3',
npm verb readDependencies returned deps hoek: 'https://registry.npmjs.org/hoek/-/hoek-2.14.0.tgz',
npm verb readDependencies returned deps joi: 'https://registry.npmjs.org/joi/-/joi-6.5.0.tgz',
npm verb readDependencies returned deps 'rand-token': 'https://registry.npmjs.org/rand-token/-/rand-token-0.2.1.tgz',
npm verb readDependencies returned deps redis: 'https://registry.npmjs.org/redis/-/redis-0.12.1.tgz',
npm verb readDependencies returned deps request: 'https://registry.npmjs.org/request/-/request-2.58.0.tgz',
npm verb readDependencies returned deps sequelize: 'https://registry.npmjs.org/sequelize/-/sequelize-3.3.2.tgz',
npm verb readDependencies returned deps tedious: 'https://registry.npmjs.org/tedious/-/tedious-1.11.2.tgz' }
npm verb cache add [ 'webkit-devtools-agent', null ]
npm verb cache add name=undefined spec="webkit-devtools-agent" args=["webkit-devtools-agent",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'webkit-devtools-agent',
npm verb parsed url path: 'webkit-devtools-agent',
npm verb parsed url href: 'webkit-devtools-agent' }
npm verb lock webkit-devtools-agent C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\1abfe81e-webkit-devtools-agent.lock
npm verb addNamed [ 'webkit-devtools-agent', '' ]
npm verb addNamed [ null, '*' ]
npm verb lock webkit-devtools-agent@ C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\eb9f18f8-webkit-devtools-agent.lock
npm verb request where is /webkit-devtools-agent
npm verb request registry https://registry.npmjs.org/
npm verb request id 64ba0a5f7a24ad84
npm verb url raw /webkit-devtools-agent
npm verb url resolving [ 'https://registry.npmjs.org/', './webkit-devtools-agent' ]
npm verb url resolved https://registry.npmjs.org/webkit-devtools-agent
npm verb request where is https://registry.npmjs.org/webkit-devtools-agent
npm info trying registry request attempt 1 at 19:23:11
npm verb etag "1X3N1JZXNW0C7MEFF1NT0KZQU"
npm http GET https://registry.npmjs.org/webkit-devtools-agent
npm http 304 https://registry.npmjs.org/webkit-devtools-agent
npm verb etag https://registry.npmjs.org/webkit-devtools-agent from cache
npm verb addNamed [ 'webkit-devtools-agent', '0.3.1' ]
npm verb addNamed [ '0.3.1', '0.3.1' ]
npm verb lock webkit-devtools-agent@0.3.1 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\b5b7db63-webkit-devtools-agent-0-3-1.lock
npm info install webkit-devtools-agent@0.3.1 into d:\DF\July16\df-nodejs-api
npm info installOne webkit-devtools-agent@0.3.1
npm verb node_modules\webkit-devtools-agent unbuild
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\webkit-devtools-agent\0.3.1\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\d
eb80f9b-de-modules-webkit-devtools-agent.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\webkit-devtools-agent\0.3.1\package.tgz C:\Users\sathishkumar_s
o\AppData\Roaming\npm-cache\3fcd1ca5-devtools-agent-0-3-1-package-tgz.lock
npm info preinstall webkit-devtools-agent@0.3.1
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'ws@0.4.31', null ]
npm verb cache add name=undefined spec="ws@0.4.31" args=["ws@0.4.31",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'ws@0.4.31',
npm verb parsed url path: 'ws@0.4.31',
npm verb parsed url href: 'ws@0.4.31' }
npm verb cache add [ 'underscore@1.3.3', null ]
npm verb cache add name=undefined spec="underscore@1.3.3" args=["underscore@1.3.3",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'underscore@1.3.3',
npm verb parsed url path: 'underscore@1.3.3',
npm verb parsed url href: 'underscore@1.3.3' }
npm verb cache add name="ws" spec="0.4.31" args=["ws","0.4.31"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '0.4.31',
npm verb parsed url path: '0.4.31',
npm verb parsed url href: '0.4.31' }
npm verb addNamed [ 'ws', '0.4.31' ]
npm verb addNamed [ '0.4.31', '0.4.31' ]
npm verb lock ws@0.4.31 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\53e67403-ws-0-4-31.lock
npm verb cache add name="underscore" spec="1.3.3" args=["underscore","1.3.3"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '1.3.3',
npm verb parsed url path: '1.3.3',
npm verb parsed url href: '1.3.3' }
npm verb addNamed [ 'underscore', '1.3.3' ]
npm verb addNamed [ '1.3.3', '1.3.3' ]
npm verb lock underscore@1.3.3 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\99e765c4-underscore-1-3-3.lock
npm verb request where is /ws
npm verb request registry https://registry.npmjs.org/
npm verb url raw /ws
npm verb url resolving [ 'https://registry.npmjs.org/', './ws' ]
npm verb url resolved https://registry.npmjs.org/ws
npm verb request where is https://registry.npmjs.org/ws
npm info trying registry request attempt 1 at 19:23:14
npm verb etag "23VOTLZN2XRB799AEVTZB5WMU"
npm http GET https://registry.npmjs.org/ws
npm verb request where is /underscore
npm verb request registry https://registry.npmjs.org/
npm verb url raw /underscore
npm verb url resolving [ 'https://registry.npmjs.org/', './underscore' ]
npm verb url resolved https://registry.npmjs.org/underscore
npm verb request where is https://registry.npmjs.org/underscore
npm info trying registry request attempt 1 at 19:23:14
npm verb etag "CVUBWYO6DNN77U6X6NT1N1M2A"
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
npm verb etag https://registry.npmjs.org/underscore from cache
npm http 304 https://registry.npmjs.org/ws
npm verb etag https://registry.npmjs.org/ws from cache
npm info install underscore@1.3.3 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
npm info install ws@0.4.31 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
npm info installOne underscore@1.3.3
npm info installOne ws@0.4.31
npm verb node_modules\webkit-devtools-agent\node_modules\underscore unbuild
npm verb node_modules\webkit-devtools-agent\node_modules\ws unbuild
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\underscore\1.3.3\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\underscore C:\Users\sathishkumar_so\App
Data\Roaming\npm-cache\f3ff2e58-ls-agent-node-modules-underscore.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\underscore\1.3.3\package.tgz C:\Users\sathishkumar_so\AppData\R
oaming\npm-cache\630f5a8d-che-underscore-1-3-3-package-tgz.lock
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\ws\0.4.31\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws C:\Users\sathishkumar_so\AppData\Roa
ming\npm-cache\0afda46c-t-devtools-agent-node-modules-ws.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\ws\0.4.31\package.tgz C:\Users\sathishkumar_so\AppData\Roaming\
npm-cache\9848f6f9--npm-cache-ws-0-4-31-package-tgz.lock
npm info preinstall underscore@1.3.3
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\underscore
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\underscore
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules' ]
npm info linkStuff underscore@1.3.3
npm verb linkBins underscore@1.3.3
npm verb linkMans underscore@1.3.3
npm verb rebuildBundles underscore@1.3.3
npm info install underscore@1.3.3
npm info postinstall underscore@1.3.3
npm info preinstall ws@0.4.31
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'commander@~0.6.1', null ]
npm verb cache add name=undefined spec="commander@~0.6.1" args=["commander@~0.6.1",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'commander@~0.6.1',
npm verb parsed url path: 'commander@~0.6.1',
npm verb parsed url href: 'commander@~0.6.1' }
npm verb cache add [ 'nan@~0.3.0', null ]
npm verb cache add name=undefined spec="nan@~0.3.0" args=["nan@~0.3.0",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'nan@~0.3.0',
npm verb parsed url path: 'nan@~0.3.0',
npm verb parsed url href: 'nan@~0.3.0' }
npm verb cache add [ 'tinycolor@0.x', null ]
npm verb cache add name=undefined spec="tinycolor@0.x" args=["tinycolor@0.x",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'tinycolor@0.x',
npm verb parsed url path: 'tinycolor@0.x',
npm verb parsed url href: 'tinycolor@0.x' }
npm verb cache add [ 'options@>=0.0.5', null ]
npm verb cache add name=undefined spec="options@>=0.0.5" args=["options@>=0.0.5",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'options@%3E=0.0.5',
npm verb parsed url path: 'options@%3E=0.0.5',
npm verb parsed url href: 'options@%3E=0.0.5' }
npm verb cache add name="commander" spec="~0.6.1" args=["commander","~0.6.1"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '~0.6.1',
npm verb parsed url path: '~0.6.1',
npm verb parsed url href: '~0.6.1' }
npm verb addNamed [ 'commander', '~0.6.1' ]
npm verb addNamed [ null, '>=0.6.1-0 <0.7.0-0' ]
npm verb lock commander@~0.6.1 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\5c53196d-commander-0-6-1.lock
npm verb cache add name="nan" spec="~0.3.0" args=["nan","~0.3.0"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '~0.3.0',
npm verb parsed url path: '~0.3.0',
npm verb parsed url href: '~0.3.0' }
npm verb addNamed [ 'nan', '~0.3.0' ]
npm verb addNamed [ null, '>=0.3.0-0 <0.4.0-0' ]
npm verb lock nan@~0.3.0 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\7bcce2a2-nan-0-3-0.lock
npm verb cache add name="tinycolor" spec="0.x" args=["tinycolor","0.x"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '0.x',
npm verb parsed url path: '0.x',
npm verb parsed url href: '0.x' }
npm verb addNamed [ 'tinycolor', '0.x' ]
npm verb addNamed [ null, '>=0.0.0-0 <1.0.0-0' ]
npm verb lock tinycolor@0.x C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\8f23180d-tinycolor-0-x.lock
npm verb cache add name="options" spec=">=0.0.5" args=["options",">=0.0.5"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '%3E=0.0.5',
npm verb parsed url path: '%3E=0.0.5',
npm verb parsed url href: '%3E=0.0.5' }
npm verb addNamed [ 'options', '>=0.0.5' ]
npm verb addNamed [ null, '>=0.0.5' ]
npm verb lock options@>=0.0.5 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\073a6bb3-options-0-0-5.lock
npm verb request where is /commander
npm verb request registry https://registry.npmjs.org/
npm verb url raw /commander
npm verb url resolving [ 'https://registry.npmjs.org/', './commander' ]
npm verb url resolved https://registry.npmjs.org/commander
npm verb request where is https://registry.npmjs.org/commander
npm info trying registry request attempt 1 at 19:23:16
npm verb etag "14WMMQ2C869J38G6TKQG6ANGN"
npm http GET https://registry.npmjs.org/commander
npm verb request where is /options
npm verb request registry https://registry.npmjs.org/
npm verb url raw /options
npm verb url resolving [ 'https://registry.npmjs.org/', './options' ]
npm verb url resolved https://registry.npmjs.org/options
npm verb request where is https://registry.npmjs.org/options
npm info trying registry request attempt 1 at 19:23:16
npm verb etag "7ORP99NHTFG329ZZWKJCRT1MV"
npm http GET https://registry.npmjs.org/options
npm verb request where is /tinycolor
npm verb request registry https://registry.npmjs.org/
npm verb url raw /tinycolor
npm verb url resolving [ 'https://registry.npmjs.org/', './tinycolor' ]
npm verb url resolved https://registry.npmjs.org/tinycolor
npm verb request where is https://registry.npmjs.org/tinycolor
npm info trying registry request attempt 1 at 19:23:16
npm verb etag "7Q55AK0YV957DH6ZT14LNQOJW"
npm http GET https://registry.npmjs.org/tinycolor
npm verb request where is /nan
npm verb request registry https://registry.npmjs.org/
npm verb url raw /nan
npm verb url resolving [ 'https://registry.npmjs.org/', './nan' ]
npm verb url resolved https://registry.npmjs.org/nan
npm verb request where is https://registry.npmjs.org/nan
npm info trying registry request attempt 1 at 19:23:16
npm verb etag "9T2TEINHQE1CYR42PWQNCEY3X"
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/options
npm verb etag https://registry.npmjs.org/options from cache
npm verb addNamed [ 'options', '0.0.6' ]
npm verb addNamed [ '0.0.6', '0.0.6' ]
npm verb lock options@0.0.6 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\d4f5c414-options-0-0-6.lock
npm http 304 https://registry.npmjs.org/tinycolor
npm verb etag https://registry.npmjs.org/tinycolor from cache
npm verb addNamed [ 'tinycolor', '0.0.1' ]
npm verb addNamed [ '0.0.1', '0.0.1' ]
npm verb lock tinycolor@0.0.1 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\8ace0652-tinycolor-0-0-1.lock
npm http 304 https://registry.npmjs.org/nan
npm verb etag https://registry.npmjs.org/nan from cache
npm verb addNamed [ 'nan', '0.3.2' ]
npm verb addNamed [ '0.3.2', '0.3.2' ]
npm verb lock nan@0.3.2 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\98ceedb5-nan-0-3-2.lock
npm http 304 https://registry.npmjs.org/commander
npm verb etag https://registry.npmjs.org/commander from cache
npm verb addNamed [ 'commander', '0.6.1' ]
npm verb addNamed [ '0.6.1', '0.6.1' ]
npm verb lock commander@0.6.1 C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\fa16a2ce-commander-0-6-1.lock
npm info install options@0.0.6 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm info install tinycolor@0.0.1 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm info install nan@0.3.2 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm info install commander@0.6.1 into d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm info installOne options@0.0.6
npm info installOne tinycolor@0.0.1
npm info installOne nan@0.3.2
npm info installOne commander@0.6.1
npm verb node_modules\webkit-devtools-agent\node_modules\ws\node_modules\options unbuild
npm verb node_modules\webkit-devtools-agent\node_modules\ws\node_modules\tinycolor unbuild
npm verb node_modules\webkit-devtools-agent\node_modules\ws\node_modules\nan unbuild
npm verb node_modules\webkit-devtools-agent\node_modules\ws\node_modules\commander unbuild
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\options\0.0.6\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\options C:\Users\sathis
hkumar_so\AppData\Roaming\npm-cache\a84c1ebd--modules-ws-node-modules-options.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\options\0.0.6\package.tgz C:\Users\sathishkumar_so\AppData\Roam
ing\npm-cache\4c42e6b0--cache-options-0-0-6-package-tgz.lock
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\nan\0.3.2\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\nan C:\Users\sathishkum
ar_so\AppData\Roaming\npm-cache\f7d011ab-node-modules-ws-node-modules-nan.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\nan\0.3.2\package.tgz C:\Users\sathishkumar_so\AppData\Roaming\
npm-cache\6a01a441--npm-cache-nan-0-3-2-package-tgz.lock
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\commander\0.6.1\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\commander C:\Users\sath
ishkumar_so\AppData\Roaming\npm-cache\16daac23-odules-ws-node-modules-commander.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\commander\0.6.1\package.tgz C:\Users\sathishkumar_so\AppData\Ro
aming\npm-cache\7d8aefa9-ache-commander-0-6-1-package-tgz.lock
npm verb tar unpack C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\tinycolor\0.0.1\package.tgz
npm verb lock tar://d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\tinycolor C:\Users\sath
ishkumar_so\AppData\Roaming\npm-cache\f2f3f8cb-odules-ws-node-modules-tinycolor.lock
npm verb lock tar://C:\Users\sathishkumar_so\AppData\Roaming\npm-cache\tinycolor\0.0.1\package.tgz C:\Users\sathishkumar_so\AppData\Ro
aming\npm-cache\e3d8825e-ache-tinycolor-0-0-1-package-tgz.lock
npm info preinstall tinycolor@0.0.1
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\tinycolor
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\tinycolor
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules\\ws\\node_modules' ]
npm info linkStuff tinycolor@0.0.1
npm verb linkBins tinycolor@0.0.1
npm verb linkMans tinycolor@0.0.1
npm verb rebuildBundles tinycolor@0.0.1
npm info install tinycolor@0.0.1
npm info postinstall tinycolor@0.0.1
npm info preinstall options@0.0.6
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\options
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\options
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules\\ws\\node_modules' ]
npm info linkStuff options@0.0.6
npm verb linkBins options@0.0.6
npm verb linkMans options@0.0.6
npm verb rebuildBundles options@0.0.6
npm info install options@0.0.6
npm info postinstall options@0.0.6
npm info preinstall nan@0.3.2
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\nan
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\nan
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules\\ws\\node_modules' ]
npm info linkStuff nan@0.3.2
npm verb linkBins nan@0.3.2
npm verb linkMans nan@0.3.2
npm verb rebuildBundles nan@0.3.2
npm info install nan@0.3.2
npm info postinstall nan@0.3.2
npm info preinstall commander@0.6.1
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\commander
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\node_modules\commander
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules\\ws\\node_modules' ]
npm info linkStuff commander@0.6.1
npm verb linkBins commander@0.6.1
npm verb linkMans commander@0.6.1
npm verb rebuildBundles commander@0.6.1
npm info install commander@0.6.1
npm info postinstall commander@0.6.1
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules' ]
npm info linkStuff ws@0.4.31
npm verb linkBins ws@0.4.31
npm verb link bins [ { wscat: './bin/wscat' },
npm verb link bins 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\node_modules\\.bin',
npm verb link bins false ]
npm verb linkMans ws@0.4.31
npm verb rebuildBundles ws@0.4.31
npm verb rebuildBundles [ 'commander', 'nan', 'options', 'tinycolor' ]
npm info install ws@0.4.31
> ws@0.4.31 install d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws>node "c:\Program Files (x86)\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.
Build started 7/24/2015 7:23:20 PM.
Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" on node 1 (default targets)
.
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" (1) is building "d:\DF\July
16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj" (2) on node 1 (default targets).
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj(18,3): error MSB4019: The impo
rted project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that t
he file exists on disk.
Done Building Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj" (defau
lt targets) -- FAILED.
Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" (1) is building "d:\DF\July
16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj" (3) on node 1 (default targets).
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj(18,3): error MSB4019: The impo
rted project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that t
he file exists on disk.
Done Building Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj" (defau
lt targets) -- FAILED.
Done Building Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" (default targ
ets) -- FAILED.
Build FAILED.
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" (default target) (1) ->
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj" (default target) (2) ->
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\bufferutil.vcxproj(18,3): error MSB4019: The im
ported project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that
the file exists on disk.
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\binding.sln" (default target) (1) ->
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj" (default target) (3) ->
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\node_modules\ws\build\validation.vcxproj(18,3): error MSB4019: The im
ported project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that
the file exists on disk.
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.04
npm verb unsafe-perm in lifecycle true
npm info postinstall ws@0.4.31
npm verb about to build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
npm info build d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'd:\\DF\\July16\\df-nodejs-api\\node_modules' ]
npm info linkStuff webkit-devtools-agent@0.3.1
npm verb linkBins webkit-devtools-agent@0.3.1
npm verb linkMans webkit-devtools-agent@0.3.1
npm verb rebuildBundles webkit-devtools-agent@0.3.1
npm verb rebuildBundles [ '.bin', 'underscore', 'ws' ]
npm info install webkit-devtools-agent@0.3.1
> webkit-devtools-agent@0.3.1 install d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
> node-gyp rebuild
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent>node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\.
.\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@1.0.1
gyp info using node@0.10.36 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:Python27python.exe" in the PATH
gyp verb `which` failed Error: not found: C:Python27python.exe
gyp verb `which` failed at F (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:43:28)
gyp verb `which` failed at E (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:46:29)
gyp verb `which` failed at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:57:16
gyp verb `which` failed at Object.oncomplete (evalmachine.<anonymous>:108:15)
gyp verb `which` failed C:Python27python.exe [Error: not found: C:Python27python.exe]
gyp verb could not find "C:Python27python.exe". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import platform; print(platform.python_version());"` returned: "2.7.8\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.36
gyp verb command install [ 'v0.10.36' ]
gyp verb install input version string "v0.10.36"
gyp verb install installing version: 0.10.36
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.10.36
gyp verb build dir attempting to create "build" dir: d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build
gyp verb build dir "build" dir needed to be created? d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\config.gypi
gyp verb config.gypi checking for gypi file: d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\config.gypi
gyp verb common.gypi checking for gypi file: d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2010',
gyp info spawn args '-I',
gyp info spawn args 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\sathishkumar_so\\.node-gyp\\0.10.36\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\sathishkumar_so\\.node-gyp\\0.10.36',
gyp info spawn args '-Dmodule_root_dir=d:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'd:\\DF\\July16\\df-nodejs-api\\node_modules\\webkit-devtools-agent\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\sathishkumar_so\.node-gyp\0.10.36
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
gyp verb copying "node.lib" for x64 C:\Users\sathishkumar_so\.node-gyp\0.10.36\Release\node.lib
gyp info spawn C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 7/24/2015 7:23:22 PM.
Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\binding.sln" (1) is building "d:\DF\July16\df-nodejs-api
\node_modules\webkit-devtools-agent\build\profiler.vcxproj" (2) on node 1 (default targets).
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\profiler.vcxproj(18,3): error MSB4019: The imported project "d:\M
icrosoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on
disk.
Done Building Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\profiler.vcxproj" (default targets) -- FAI
LED.
Done Building Project "d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\binding.sln" (default targets) -- FAILED.
Build FAILED.
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\binding.sln" (default target) (1) ->
"d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\profiler.vcxproj" (default target) (2) ->
d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent\build\profiler.vcxproj(18,3): error MSB4019: The imported project "d:
\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists o
n disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.04
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files (x86)\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:820:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd d:\DF\July16\df-nodejs-api\node_modules\webkit-devtools-agent
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info webkit-devtools-agent@0.3.1 Failed to exec install script
npm ERR! webkit-devtools-agent@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webkit-devtools-agent@0.3.1 install script.
npm ERR! This is most likely a problem with the webkit-devtools-agent 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 webkit-devtools-agent
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "in
stall" "webkit-devtools-agent" "--python=C:Python27python.exe" "--msvs_version=2010" "--verbose"
npm ERR! cwd d:\DF\July16\df-nodejs-api
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm verb node_modules\webkit-devtools-agent unbuild
npm info preuninstall webkit-devtools-agent@0.3.1
npm info uninstall webkit-devtools-agent@0.3.1
npm verb true,d:\DF\July16\df-nodejs-api\node_modules,d:\DF\July16\df-nodejs-api\node_modules unbuild webkit-devtools-agent@0.3.1
npm info postuninstall webkit-devtools-agent@0.3.1
npm ERR! not ok code 0
Please provide me some inputs on this and how to fix this now. This happens for me for almost all modules which needs node-gyp rebuild.
If you need me to provide more inputs i am happy to help 😃
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19
Just in case, when reinstalling python and visual studio does not help, I got it working by setting the environment variable VCTargetsPath to the directory location where Microsoft.Cpp.Defaults.props is installed, C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140 in my case on Windows 7.
I solved it with Roman’s @RomanManz approach:
SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140
I also removed Microsoft Visual Studio 2015 Community Edition and installed Microsoft Visual C++ Build Tools, version 14.0.25420.1.
Here are the steps that worked for me, if you are trying to install node-java
I had this issue and solved it by installing Microsoft Visual C++ Build Tools 2015 with Chocolatey:
Download link for the Standalone Build Tools
http://landinghub.visualstudio.com/visual-cpp-build-tools
+1 on the tip from @RomanManz and @lboening - the 2015 Build Tools seemed to be enough for me, without needing VS2015 Express Edition or the more current Community versions.
I also needed to make sure that I had the
Windows 8.1 SDK
option selected in theBuild Tools 2015
install. TheWindows 10 SDK
by itself was not enough.I tried many variations and components of the
Build Tools 2017
install and mynode-gyp
build would fail on my machine.@dhusemann This doesn’t look like an MSBuild max-path issue.
From the MSBuild part of the log:
Note the
d:\Microsoft.Cpp.Default.props
part. That file would usually be referenced bywhere
VCTargetsPath
is part of an MSBuild toolset. Here, it looks like it’s unset, causing the import to be expanded to\Microsoft.Cpp.Default.props
, which Windows then opens using the current drive root.This looks like this old StackOverflow problem.
@bboysathish, can you post the contents of your registry’s
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions
(and the Wow64 version)? Then try a repair install of Visual Studio to see if that fixes the issue–I don’t recommend manually editing the registry at this point.I did a couple of things to fix it, probably ugly but it’s working now :
Hope this help 👍
Reinstalling Visual C++ Build Tools worked for me. Thanks, @RomanManz and @lboening !