Answer the question
In order to leave comments, you need to log in
How to solve npm package installation problem?
The gulp-svg-sprites package was required. It in turn requires node-gyp. I have win8.1x64. Here https://github.com/TooTallNate/node-gyp#installation I read that node-gyp requires python2.7 (installed), microsoft Visual Studio C++ 2013 (installed), installed Windows SDK 8.1 just in case, installed npm install -g node-gyp. Nothing worked out for me, after several hours of suffering, I googled this https://github.com/TooTallNate/node-gyp/issues/297 (because I really have a username in Cyrillic), and according to the instructions https:/ /github.com/TooTallNate/node-gyp/pull/366#i...changed everything. Now there is some process going on, even something is trying to be installed, but then everything breaks off (there is a very long footcloth in the console, so I provide a piece that fit and npm-debug.log - here is the link https://yadi.sk/i/ rk6uru-pguowZ )
Все что сверху ооооочень длинный список, по моему ошибки начинаются с момента, который представлен ниже
libxml.vcxproj -> c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-s
prite-data\node_modules\libxmljs\build\Release\\libxml.lib
libxmljs.cc
xml_attribute.cc
xml_document.cc
xml_element.cc
..\src\libxmljs.cc(3): fatal error C1083: Cannot open include file: 'v8.h': No such file or directo ry [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_ modules\libxmljs\build\xmljs.vcxproj]
c:\sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modu les\libxmljs\src\libxmljs.h(5): fatal error C1083: Cannot open include file: 'v8.h': No such file o r directory (..\src\xml_attribute.cc) [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites \node_modules\svg-sprite-data\node_modules\libxmljs\build\xmljs.vcxproj]
..\src\xml_element.cc(3): fatal error C1083: Cannot open include file: 'node.h': No such file or di rectory [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\ node_modules\libxmljs\build\xmljs.vcxproj]
xml_namespace.cc
xml_node.cc
..\src\xml_document.cc(3): fatal error C1083: Cannot open include file: 'node.h': No such file or d irectory [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data \node_modules\libxmljs\build\xmljs.vcxproj]
xml_sax_parser.cc
xml_syntax_error.cc
..\src\xml_namespace.cc(3): fatal error C1083: Cannot open include file: 'node.h': No such file or
directory [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-dat a\node_modules\libxmljs\build\xmljs.vcxproj]
xml_xpath_context.cc
..\src\xml_node.cc(3): fatal error C1083: Cannot open include file: 'node.h': No such file or direc tory [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\nod e_modules\libxmljs\build\xmljs.vcxproj]
..\src\xml_sax_parser.cc(3): fatal error C1083: Cannot open include file: 'node.h': No such file or directory [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-da ta\node_modules\libxmljs\build\xmljs.vcxproj]
c:\sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modu les\libxmljs\src\libxmljs.h(5): fatal error C1083: Cannot open include file: 'v8.h': No such file o r directory (..\src\xml_xpath_context.cc) [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-spr ites\node_modules\svg-sprite-data\node_modules\libxmljs\build\xmljs.vcxproj]
c:\sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modu les\libxmljs\src\libxmljs.h(5): fatal error C1083: Cannot open include file: 'v8.h': No such file o r directory (..\src\xml_syntax_error.cc) [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-spri tes\node_modules\svg-sprite-data\node_modules\libxmljs\build\xmljs.vcxproj]
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\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067: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:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modules\libxmljs
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
> [email protected] install c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modules\phantom-sync\node_modules\phantom\node_modules\dnode\node_modules\weak
> node-gyp rebuild
c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modules\phantom-sync\node_modules\phantom\node_modules\dnode\node_modules\weak>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
weakref.cc
..\src\weakref.cc(18): fatal error C1083: Cannot open include file: 'v8.h': No such file or directo ry [c:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_ modules\phantom-sync\node_modules\phantom\node_modules\dnode\node_modules\weak\build\weakref.vcxpro j]
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\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067: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:\Sites\gulp_projects\lovejob\node_modules\gulp-svg-sprites\node_modules\svg-sprite-data\node_modules\phantom-sync\node_modules\phantom\node_modules\dnode\node_modules\weak
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
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" "install" "gulp-svg-sprites" "--save-dev"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the libxmljs 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 libxmljs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Sites\gulp_projects\lovejob\npm-debug.log
Answer the question
In order to leave comments, you need to log in
Hey!
https://github.com/TooTallNate/node-gyp/issues/644
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question