Задать вопрос
@ludr

Как исправить ошибки при установке webpack-dev-server?

OS Korora 22(читай Fedora 22),
nodejs 0.12(0.10 тоже пробовал) установлен с помощью nvm,
GCC - есть,
python 2.7 - есть,
make - есть.
При установке четыре раза "спотыкается". Уважаемые nodejs гуру помогите.
$ npm install webpack-dev-server -g
npm WARN peerDependencies The peer dependency webpack@^1.3.0 included from webpack-dev-server will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency webpack@^1.0.0 included from webpack-dev-middleware will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
 
> bufferutil@1.1.0 install /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: вход в каталог «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build»
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Команда не найдена
bufferutil.target.mk:90: ошибка выполнения рецепта для цели «Release/obj.target/bufferutil/src/bufferutil.o»
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Ошибка 127
make: выход из каталога «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/kor/.nvm/versions/node/v0.12.7/lib/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 Linux 4.1.5-200.fc22.x86_64
gyp ERR! command "node" "/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
 
> utf-8-validate@1.1.0 install /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: вход в каталог «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build»
  CXX(target) Release/obj.target/validation/src/validation.o
make: g++: Команда не найдена
validation.target.mk:90: ошибка выполнения рецепта для цели «Release/obj.target/validation/src/validation.o»
make: *** [Release/obj.target/validation/src/validation.o] Ошибка 127
make: выход из каталога «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/kor/.nvm/versions/node/v0.12.7/lib/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 Linux 4.1.5-200.fc22.x86_64
gyp ERR! command "node" "/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing bufferutil@1.1.0
 
> utf-8-validate@1.1.0 install /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: вход в каталог «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build»
  CXX(target) Release/obj.target/validation/src/validation.o
make: g++: Команда не найдена
validation.target.mk:90: ошибка выполнения рецепта для цели «Release/obj.target/validation/src/validation.o»
make: *** [Release/obj.target/validation/src/validation.o] Ошибка 127
make: выход из каталога «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/kor/.nvm/versions/node/v0.12.7/lib/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 Linux 4.1.5-200.fc22.x86_64
gyp ERR! command "node" "/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing utf-8-validate@1.1.0
 
> bufferutil@1.1.0 install /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: вход в каталог «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build»
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Команда не найдена
bufferutil.target.mk:90: ошибка выполнения рецепта для цели «Release/obj.target/bufferutil/src/bufferutil.o»
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Ошибка 127
make: выход из каталога «/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/kor/.nvm/versions/node/v0.12.7/lib/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)
System Linux 4.1.5-200.fc22.x86_64
gyp ERR! command "node" "/home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing utf-8-validate@1.1.0
npm WARN optional dep failed, continuing bufferutil@1.1.0
npm WARN optional dep failed, continuing fsevents@0.3.8
/home/kor/.nvm/versions/node/v0.12.7/bin/webpack-dev-server -> /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server/bin/webpack-dev-server.js
webpack-dev-server@1.10.1 /home/kor/.nvm/versions/node/v0.12.7/lib/node_modules/webpack-dev-server
├── supports-color@1.3.1
├── connect-history-api-fallback@1.1.0
├── strip-ansi@2.0.1 (ansi-regex@1.1.1)
├── stream-cache@0.0.2
├── http-proxy@1.11.1 (eventemitter3@1.1.1, requires-port@0.0.1)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── express@4.13.3 (escape-html@1.0.2, merge-descriptors@1.0.0, array-flatten@1.1.1, cookie@0.1.3, utils-merge@1.0.0, cookie-signature@1.0.6, methods@1.1.1, fresh@0.3.0, range-parser@1.0.2, vary@1.0.1, path-to-regexp@0.1.7, content-type@1.0.1, etag@1.7.0, parseurl@1.3.0, content-disposition@0.5.0, serve-static@1.10.0, depd@1.0.1, qs@4.0.0, on-finished@2.3.0, finalhandler@0.4.0, debug@2.2.0, proxy-addr@1.0.8, send@0.13.0, type-is@1.6.7, accepts@1.2.12)
├── serve-index@1.7.2 (escape-html@1.0.2, parseurl@1.3.0, batch@0.5.2, http-errors@1.3.1, accepts@1.2.12, debug@2.2.0, mime-types@2.1.5)
├── socket.io@1.3.6 (debug@2.1.0, has-binary-data@0.1.3, socket.io-adapter@0.3.1, engine.io@1.5.2, socket.io-parser@2.2.4)
├── socket.io-client@1.3.6 (to-array@0.1.3, indexof@0.0.1, debug@0.7.4, component-bind@1.0.0, backo2@1.0.2, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.2, socket.io-parser@2.2.4)
├── webpack@1.12.0 (interpret@0.6.5, tapable@0.1.9, async@1.4.2, clone@1.0.2, memory-fs@0.2.0, supports-color@3.1.0, enhanced-resolve@0.9.0, esprima@2.5.0, mkdirp@0.5.1, webpack-core@0.6.6, uglify-js@2.4.24, watchpack@0.2.8, node-libs-browser@0.5.2)
└── webpack-dev-middleware@1.2.0 (memory-fs@0.2.0, mime@1.3.4)
  • Вопрос задан
  • 1479 просмотров
Подписаться 1 Оценить Комментировать
Решения вопроса 1
make: g++: Команда не найдена

В дополнение к gcc установите g++.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы