Microsoft cpp default props install

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Installation Error: «E:\Microsoft.Cpp.Default.props» was not found #420

Windows Installation Error: «E:\Microsoft.Cpp.Default.props» was not found #420

Comments

I’m getting an issue when installing sharp on Windows (via gulp-responsive).

Operating System: Windows 7 SP1 x64
NodeJS Version: v0.12.2

How it appears when running npm install sharp is as follows.

$ npm install sharp \ > sharp@0.14.1 install E:\cartridge-images\node_modules\sharp > node-gyp rebuild E:\cartridge-images\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Users\tristanashley\AppData\Roaming\nvm\v0.12.2\n ode_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. E:\cartridge-images\node_modules\sharp\build\libvips-cpp.vcxproj(18,3): error MSB4019: The imported project "E:\Microsoft.Cpp.Defaul t.props" was not found. Confirm that the path in the 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:\Users\tristanashley\AppData\Roaming\nvm\v0.12.2\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.1.7601 gyp ERR! command "node" "C:\\Users\\tristanashley\\AppData\\Roaming\\nvm\\v0.12.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\no de-gyp.js" "rebuild" gyp ERR! cwd E:\cartridge-images\node_modules\sharp gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "shar p" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE npm ERR! sharp@0.14.1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.14.1 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the sharp 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 sharp npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! E:\cartridge-images\npm-debug.log 

Our CI build (for a project that isn’t worked on regularly) passed 13 days ago and recently failed with the error as noted above.

Читайте также:  Create map in python

I have tried back-installing all the way to sharp v0.5.0, to no avail with the same error.

Apologise in advance if this is something on my end, though your help is greatly appreciated!

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

npm / npm Public archive

«c:\Microsoft.Cpp.Default.props» was not found. #10421

«c:\Microsoft.Cpp.Default.props» was not found. #10421

Comments

I have been dealing with this issue for awhile now.

But it did not help me. I also made sure everything for node-gyp is installed from reading this post
http://stackoverflow.com/questions/21365714/nodejs-error-installing-with-npm

I did the following as well:

Install python(2.x.x)
Install Microsoft Visual Studio C++ 2012 Express version
Install node-gyp: npm install -g node-gyp

I am still getting this in my console:

c:\projects\misc\affilate\node_modules\iconv\build\libiconv.vcxproj(20,3): erro
r MSB4019: The imported project «c:\Microsoft.Cpp.Default.props» was not found.
Confirm that the path in the declaration is correct, and that the fil
e exists on disk.
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\NB91870\AppData\Roaming\npm
node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command «C:\Program Files\nodejs\node.exe» «C:\Users\NB91870\AppD
ata\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js»
«rebuild»
gyp ERR! cwd c:\projects\misc\affilate\node_modules\iconv
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3

The text was updated successfully, but these errors were encountered:

@christian4423 are you still facing issues installing node-gyp ?

https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules
AlexeyKupershtokh/node-v8-clone#7
Add or modify the environment variable VCTargetsPath top point at the C++ build tools path. This should be something like C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140 (where 140 corresponds to Visual Studio 2015)

What you say is wrong. There is no any Microsoft.Cpp\v4.0\v140 directories.

FYI, here is what C:\Program Files (x86)\MSBuild looks like

c__program files x86 _msbuild 2016-11-16 20 16 44

Doesn’t look like a npm issue to me.

Installing Standalone Build Tools solved this for me

I had the same issue and solved it using Windows option 1 on https://github.com/nodejs/node-gyp.
First comment from No9 did it for me.

«Installing Standalone Build Tools solved this for me»
— @nightwolfz I had visual studio community edition 2017 install but I am still seeing this message when I am trying to install oracledb

C:\Users\Sauravp\AppData\Roaming\npm\node_modules\oracledb>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.
C:\Users\Sauravp\AppData\Roaming\npm\node_modules\oracledb\build\oracledb.vcxproj(20,3): error MSB4019: The imported project «C:\Microsoft.Cpp.Default.props» was not f
ound. Confirm that the path in the declaration is correct, and that the file exists on disk.
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:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command «C:\Program Files\nodejs\node.exe» «C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js» «rebuild»
gyp ERR! cwd C:\Users\Sauravp\AppData\Roaming\npm\node_modules\oracledb
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! Windows_NT 10.0.14393
npm ERR! argv «C:\Program Files\nodejs\node.exe» «C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js» «install» «-g» «oracledb»
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

after thrashing around for a while with various google searches, github, stackoverflow etc i’ve made a .bat file which does it all

npm install —global —production windows-build-tools

Note that you have to run npm install —global —production windows-build-tools as administrator. In my case there were no errors on install of the dev tools but still got the c:\Microsoft.Cpp.Default.props error. uninstall, open shell as admin, re install solved it for me.

Источник

Оцените статью