css-gridish
css-gridish copied to clipboard
css-gridish requires xcodebuild on macOS
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
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. 🤔
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.
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
Hi @edquijano, please make a separate issue and include the logs from your terminal.