aslansky / css-sprite

css sprite generator
MIT License
734 stars 55 forks source link

failed to install via npm #2

Closed yairEO closed 10 years ago

yairEO commented 10 years ago

What did I do wrong?

npm install css-sprite --save
npm http GET https://registry.npmjs.org/css-sprite
npm http 200 https://registry.npmjs.org/css-sprite
npm http GET https://registry.npmjs.org/css-sprite/-/css-sprite-0.6.2.tgz
npm http 200 https://registry.npmjs.org/css-sprite/-/css-sprite-0.6.2.tgz
npm http GET https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/nomnom
npm http GET https://registry.npmjs.org/imageinfo
npm http GET https://registry.npmjs.org/json2css
npm http GET https://registry.npmjs.org/vinyl
npm http GET https://registry.npmjs.org/vinyl-fs
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/event-stream
npm http 200 https://registry.npmjs.org/imageinfo
npm http 200 https://registry.npmjs.org/nomnom
npm http GET https://registry.npmjs.org/imageinfo/-/imageinfo-1.0.4.tgz
npm http GET https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz
npm http 200 https://registry.npmjs.org/vinyl
npm http 200 https://registry.npmjs.org/json2css
npm http 304 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/vinyl-fs
npm http GET https://registry.npmjs.org/json2css/-/json2css-4.2.2.tgz
npm http 200 https://registry.npmjs.org/graceful-fs
npm http 200 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.2.tgz
npm http GET https://registry.npmjs.org/gaze/-/gaze-0.5.0.tgz
npm http GET https://registry.npmjs.org/lodash/-/lodash-2.4.1.tgz
npm http 200 https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz
npm http 200 https://registry.npmjs.org/imageinfo/-/imageinfo-1.0.4.tgz
npm http 200 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/canvas/-/canvas-1.1.3.tgz
npm http 200 https://registry.npmjs.org/json2css/-/json2css-4.2.2.tgz
npm http 200 https://registry.npmjs.org/lodash/-/lodash-2.4.1.tgz
npm http 200 https://registry.npmjs.org/gaze/-/gaze-0.5.0.tgz
npm http 200 https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.2.tgz
npm http 200 https://registry.npmjs.org/canvas/-/canvas-1.1.3.tgz
npm http 200 https://registry.npmjs.org/event-stream
npm http GET https://registry.npmjs.org/globule
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/clone-stats
npm http GET https://registry.npmjs.org/glob-watcher
npm http GET https://registry.npmjs.org/map-stream
npm http GET https://registry.npmjs.org/glob-stream
npm http GET https://registry.npmjs.org/split
npm http GET https://registry.npmjs.org/from
npm http GET https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/pause-stream/0.0.11
npm http GET https://registry.npmjs.org/mustache
npm http GET https://registry.npmjs.org/json-content-demux
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/nan
npm http 200 https://registry.npmjs.org/globule
npm http 200 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/glob
npm http 200 https://registry.npmjs.org/clone-stats
npm http GET https://registry.npmjs.org/colors/-/colors-0.5.1.tgz
npm http 304 https://registry.npmjs.org/map-stream
npm http 200 https://registry.npmjs.org/glob-watcher
npm http 200 https://registry.npmjs.org/from
npm http 200 https://registry.npmjs.org/stream-combiner
npm http 200 https://registry.npmjs.org/split
npm http 200 https://registry.npmjs.org/duplexer
npm http 200 https://registry.npmjs.org/glob-stream
npm http 200 https://registry.npmjs.org/pause-stream/0.0.11
npm http GET https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/json-content-demux
npm http GET https://registry.npmjs.org/json-content-demux/-/json-content-demux-0.1.3.tgz
npm http 200 https://registry.npmjs.org/colors/-/colors-0.5.1.tgz
npm http 304 https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/nan/-/nan-0.4.4.tgz
npm http 200 https://registry.npmjs.org/mustache
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/glob2base
npm http GET https://registry.npmjs.org/ordered-read-streams
npm http GET https://registry.npmjs.org/unique-stream
npm http GET https://registry.npmjs.org/mustache/-/mustache-0.7.3.tgz
npm http 200 https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm http 200 https://registry.npmjs.org/json-content-demux/-/json-content-demux-0.1.3.tgz
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/nan/-/nan-0.4.4.tgz
npm http 200 https://registry.npmjs.org/mustache/-/mustache-0.7.3.tgz
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/glob2base

> canvas@1.1.3 install C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\canvas
> node-gyp rebuild

C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\canvas>node "C:\Program Files\nodejs\node_m
odules\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:101:
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 (fs.js: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 C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\canvas
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 200 https://registry.npmjs.org/through
npm http 200 https://registry.npmjs.org/unique-stream
npm http 304 https://registry.npmjs.org/ordered-read-streams
npm http 200 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/inherits
npm ERR! Error: ENOENT, open 'C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\vinyl-fs\node
_modules\glob-watcher\node_modules\gaze\node_modules\globule\node_modules\glob\.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "css-sprite" "--save"
npm ERR! cwd C:\xampp\htdocs\gurushots\trunk\website
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\vinyl-fs\node_modules\glob-wa
tcher\node_modules\gaze\node_modules\globule\node_modules\glob\.npmignore
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat 'C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\vinyl-fs\nod
e_modules\glob-watcher\node_modules\gaze\node_modules\globule\node_modules\minimatch\minimatch.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "css-sprite" "--save"
npm ERR! cwd C:\xampp\htdocs\gurushots\trunk\website
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\vinyl-fs\node_modules\glob-wa
tcher\node_modules\gaze\node_modules\globule\node_modules\minimatch\minimatch.js
npm ERR! fstream_path C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\vinyl-fs\node_modules
\glob-watcher\node_modules\gaze\node_modules\globule\node_modules\minimatch\minimatch.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: EPERM, unlink 'C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_m
odules\gaze\node_modules\globule\node_modules\lodash\dist\lodash.js'
npm ERR! error rolling back  css-sprite@0.6.2 { [Error: EPERM, unlink 'C:\xampp\htdocs\gurushots\trunk\website\node_modu
les\css-sprite\node_modules\gaze\node_modules\globule\node_modules\lodash\dist\lodash.js']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: 'C:\\xampp\\htdocs\\gurushots\\trunk\\website\\node_modules\\css-sprite\\node_module
s\\gaze\\node_modules\\globule\\node_modules\\lodash\\dist\\lodash.js' }
npm ERR! canvas@1.1.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.1.3 install script.
npm ERR! This is most likely a problem with the canvas 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 canvas
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "css-sprite" "--save"
npm ERR! cwd C:\xampp\htdocs\gurushots\trunk\website
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\gaze\node_mo
dules\globule\node_modules\lodash\dist\lodash.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "css-sprite" "--save"
npm ERR! cwd C:\xampp\htdocs\gurushots\trunk\website
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\gaze\node_modules\globule\nod
e_modules\lodash\dist\lodash.js
npm ERR! fstream_path C:\xampp\htdocs\gurushots\trunk\website\node_modules\css-sprite\node_modules\gaze\node_modules\glo
bule\node_modules\lodash\dist\lodash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/sigmund
npm http 200 https://registry.npmjs.org/lru-cache
npm http 200 https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\xampp\htdocs\gurushots\trunk\website\npm-debug.log
npm ERR! not ok code 0
aslansky commented 10 years ago

Hi,

css-sprite depends on node-canvas which depends on a c library called cairo. Take a look at here. There is instructions on how to install cairo and node-gyp on windows. I am sorry that on windows it is not a hassle free installation but at the moment unfortunately there is no other way.

yairEO commented 10 years ago

well, "spritesmith" is so much easier I don't see to need to put a person into such trouble installing "css-sprite".. thanks anyway!

aslansky commented 10 years ago

No worries. Thanks for trying.