{"id":2986,"date":"2015-11-07T11:23:40","date_gmt":"2015-11-07T07:23:40","guid":{"rendered":"http:\/\/nayarweb.com\/blog\/?p=2986"},"modified":"2015-11-08T12:42:56","modified_gmt":"2015-11-08T08:42:56","slug":"stupid-macos-cant-fucking-compile-nodejs-libraries-without-xcode","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2015\/stupid-macos-cant-fucking-compile-nodejs-libraries-without-xcode\/","title":{"rendered":"Stupid MacOS. Can&#8217;t fucking compile NodeJS libraries without XCode"},"content":{"rendered":"<p>In your package.json<\/p>\n<pre>\r\n{\r\n  \"name\": \"macsucks\",\r\n  \"version\": \"0.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"dependencies\": {\r\n    \"node-curl\": \"^0.3.3\"\r\n  }\r\n}\r\n<\/pre>\n<pre>$ npm install<\/pre>\n<p>Damn that thing swears at me.<\/p>\n<pre>\r\n> node-curl@0.3.3 install \/Users\/nayar\/Codes\/untitled folder\/node_modules\/node-curl\r\n> sh src\/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)\r\n\r\nextract constants from \/usr\/include\/curl\/curl.h\r\ngenerate src\/integer_options.h\r\ngenerate src\/string_options.h\r\ngenerate src\/integer_infos.h\r\ngenerate src\/string_infos.h\r\ngenerate src\/double_infos.h\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '\/Library\/Developer\/CommandLineTools' is a command line tools instance\r\n\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '\/Library\/Developer\/CommandLineTools' is a command line tools instance\r\n<\/pre>\n<p>Let me try to download that fucking XCode. I open the app store. Create my account. It won&#8217;t fucking let me finish the procedure without me adding my credit card details :@<\/p>\n<p><a href=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-07-at-11.21.24-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-07-at-11.21.24-AM.png\" alt=\"Screen Shot 2015-11-07 at 11.21.24 AM\" width=\"1003\" height=\"511\" class=\"aligncenter size-full wp-image-2990\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-07-at-11.21.24-AM.png 1003w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-07-at-11.21.24-AM-300x153.png 300w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/a><\/p>\n<p>WTH Apple? <\/p>\n<p>UPDATE: I&#8217;m being able to download the XCode .dmg from this url: https:\/\/developer.apple.com\/downloads\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In your package.json { &#8220;name&#8221;: &#8220;macsucks&#8221;, &#8220;version&#8221;: &#8220;0.0.0&#8221;, &#8220;description&#8221;: &#8220;&#8221;, &#8220;main&#8221;: &#8220;index.js&#8221;, &#8220;scripts&#8221;: { &#8220;test&#8221;: &#8220;echo \\&#8221;Error: no test specified\\&#8221; &#038;&#038; exit 1&#8243; }, &#8220;author&#8221;: &#8220;&#8221;, &#8220;license&#8221;: &#8220;ISC&#8221;, &#8220;dependencies&#8221;: { &#8220;node-curl&#8221;: &#8220;^0.3.3&#8221; } } $ npm install Damn that thing swears at me. > node-curl@0.3.3 install \/Users\/nayar\/Codes\/untitled folder\/node_modules\/node-curl > sh src\/generate_curl_options_list.sh &#038;&#038; (node-gyp rebuild || &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2015\/stupid-macos-cant-fucking-compile-nodejs-libraries-without-xcode\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Stupid MacOS. Can&#8217;t fucking compile NodeJS libraries without XCode<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210,1],"tags":[216],"class_list":["post-2986","post","type-post","status-publish","format-standard","hentry","category-technology","category-uncategorized","tag-mac"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=2986"}],"version-history":[{"count":5,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2986\/revisions"}],"predecessor-version":[{"id":2993,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2986\/revisions\/2993"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=2986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=2986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=2986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}