S
S
SergeyKisliy2014-10-22 17:37:20
JavaScript
SergeyKisliy, 2014-10-22 17:37:20

And again gulp.js - spritesmith does not work. What is the problem ?

I have gulp.spritesmith installed, with some
cmd errors

PS D:\createSprite> npm install gulp.spritesmith --save-dev
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
|


> [email protected] preinstall D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\gmsmith
> gm -version || convert -version

"gm" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
Неправильно указан диск.
npm WARN optional dep failed, continuing [email protected]
\


> [email protected] preinstall D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\ph
antomjssmith
> phantomjs --version

"phantomjs" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.31","npm":"1.4.23"})
-


> [email protected] install D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\canvassmith\n
ode_modules\canvas
> node-gyp rebuild

/
D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\canvassmith\node_modules\canvas>node
 "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:
14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:107:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuil
d"
gyp ERR! cwd D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\canvassmith\node_module
s\canvas
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules\gulp.spritesmith
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
0.5.1, [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected])

And sprites are not created
[18:05:36] Using gulpfile D:\createSprite\gulpfile.js
[18:05:36] Starting 'sprite'...
[18:05:36] Finished 'sprite' after 9.62 ms
[18:05:36] Starting 'default'...
[18:05:36] Finished 'default' after 9.37 ?s

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Unsupported file type:
    at D:\createSprite\node_modules\gulp.spritesmith\node_modules\spritesmith\node_modules\pngsmith\node_modules\get-pix
els\node-pixels.js:52:12
    at process._tickCallback (node.js:419:13)

Given the number of problems with gulp (but the need for it) does it make sense to tear down the entire node.js and clean up the system?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maksim Zverev, 2014-10-22
@m1skam

How about reading the error? I don’t see the full record on the phone, but in one place it is clearly written, Can't find Python executable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question