css-gridish icon indicating copy to clipboard operation
css-gridish copied to clipboard

css-gridish requires xcodebuild on macOS

Open kmelve opened this issue 7 years ago • 4 comments

When I ran npx css-gridish I got this error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

macOS 10.13.2 node v 8.9.2

kmelve avatar Jan 24 '18 09:01 kmelve

Does the same happen with npm install css-gridish and then running it as a package.json build script?

Looks like there is a fix end-users can do for the time being: https://github.com/nodejs/node-gyp/issues/569

Immediate PR: Add that link to the README and add macOS to the requirements with Node.

Future-proof PR: Recognize why this tool requires Xcode in the first place and remove that requirement. 🤔

seejamescode avatar Jan 24 '18 15:01 seejamescode

It runs fine as a npm script 👍

I suspect that it's the node-sass dependency that is the culprit:

npm ls node-gyp
[email protected] ~/Desktop
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected]

I believe this error occured because I just switched node enviroment before trying your script (which didn't have the bindings yet?). I don't think it's easy to avoid this requirement though, as you probably want compile Sass with the libsass library that node-sass binds to.

kmelve avatar Jan 24 '18 21:01 kmelve

I got problems to run "build" in my mac os. I already update Xcode but the problem persist. So far my solutions are exhausted. Any solutions?

Thanks

edquijano avatar Feb 04 '18 08:02 edquijano

Hi @edquijano, please make a separate issue and include the logs from your terminal.

seejamescode avatar Feb 05 '18 15:02 seejamescode