gleero / grunt-favicons

Generate favicon.ico and icons for iOS, Android and WP8
MIT License
232 stars 48 forks source link

Can't install #27

Closed ingozoell closed 10 years ago

ingozoell commented 10 years ago

Hi,

I´d like to try your plugin. I run sudo npm install grunt-favicons --save-dev Terminal shows:

...
> execSync@1.0.1-pre install /Users/Ingo/Desktop/grunt_tools/grunt_favicons/node_modules/grunt-favicons/node_modules/execSync
> node-gyp rebuild

xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information.

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.5.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Ingo/Desktop/grunt_tools/grunt_favicons/node_modules/grunt-favicons/node_modules/execSync
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/string_decoder
npm ERR! execSync@1.0.1-pre install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the execSync@1.0.1-pre install script.
npm ERR! This is most likely a problem with the execSync 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 execSync
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-favicons" "--save-dev"
npm ERR! cwd /Users/Ingo/Desktop/grunt_tools/grunt_favicons
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/Ingo/Desktop/grunt_tools/grunt_favicons/npm-debug.log
npm ERR! not ok code 0

I use it on Mac with: grunt ~0.4.4 imagemagick-6.8.8-9

Can you help me, please? Ingo

gleero commented 10 years ago

It seems that command line tools not installed. Try xcode-select --install And install npm modules without sudo.

ingozoell commented 10 years ago

Thanks.

I try it:

iz:~ Ingo$ xcode-select --install
xcode-select: Error: unknown command option '--install'.

xcode-select: Report or change the path to the active
              Xcode installation for this machine.

Usage: xcode-select --print-path
           Prints the path of the active Xcode folder
   or: xcode-select --switch <xcode_path>
           Sets the path for the active Xcode folder
   or: xcode-select --version
           Prints the version of xcode-select

I´m not really familiar with Terminal usage.

gleero commented 10 years ago

I'm sorry, I did not notice that your Darwin 12.5.0 → OS X 10.8. xcode-select --install only since 10.9.

For ML install command line tools a little harder. If you have Apple developer account, you can download it here.

Or install Xcode and use it to install command line tools (Xcode > Preferences... > Downloads).

Read it http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools

gleero commented 10 years ago

I hope that the problem was resolved