@nollac

Чего не хватает Gulp?

Здравствуйте. Начал разбираться с gulp, и при установке плагина gulp-responsive возникла ошибка. Я так понял, нужно установить питон? Объясните, пожалуйста, что с этим всем делать. Версия gulp 3.9.1
D:\_Sasha\11\training\newproject>npm install --save-dev gulp-responsive

> sharp@0.16.2 install D:\_Sasha\11\training\newproject\node_modules\sharp
> node-gyp rebuild


D:\_Sasha\11\training\newproject\node_modules\sharp>if not defined npm_config_no
de_gyp (node "D:\Sasha\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modu
les\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (D:\Sasha\nodejs\node_modules\npm\node_module
s\node-gyp\lib\configure.js:449:14)
gyp ERR! stack     at D:\Sasha\nodejs\node_modules\npm\node_modules\node-gyp\lib
\configure.js:404:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\\Sasha\\nodejs\\node.exe" "D:\\Sasha\\nodejs\\node_modules\
\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\_Sasha\11\training\newproject\node_modules\sharp
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
newproject@1.0.0 D:\_Sasha\11\training\newproject
`-- (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN newproject@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Sasha\\nodejs\\node.exe" "D:\\Sasha\\nodejs\\node_modules\\np
m\\bin\\npm-cli.js" "install" "--save-dev" "gulp-responsive"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! sharp@0.16.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.16.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs sharp
npm ERR! Or if that isn't available, 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!     D:\_Sasha\11\training\newproject\npm-debug.log
npm ERR! code 1
  • Вопрос задан
  • 917 просмотров
Решения вопроса 1
sim3x
@sim3x
https://github.com/nodejs/node-gyp#installation

Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using
npm install --global --production windows-build-tools

from an elevated PowerShell or CMD.exe (run as Administrator).

stackoverflow.com/questions/21365714/nodejs-error-...
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы