Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

css-gridish requires xcodebuild on macOS #3

Open
kmelve opened this issue Jan 24, 2018 · 4 comments
Open

css-gridish requires xcodebuild on macOS #3

kmelve opened this issue Jan 24, 2018 · 4 comments

Comments

@kmelve
Copy link
Contributor

kmelve commented Jan 24, 2018

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

@seejamescode
Copy link
Contributor

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: nodejs/node-gyp#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. 🤔

@kmelve
Copy link
Contributor Author

kmelve commented Jan 24, 2018

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.

@edquijano
Copy link

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

@seejamescode
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants