{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1998","repository_url":"https://api.github.com/repos/sass/libsass","labels_url":"https://api.github.com/repos/sass/libsass/issues/1998/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1998/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1998/events","html_url":"https://github.com/sass/libsass/issues/1998","id":148411959,"number":1998,"title":"Node-gyp g++ and libsass error","user":{"login":"fivedoor","id":2720970,"avatar_url":"https://avatars.githubusercontent.com/u/2720970?v=3","gravatar_id":"","url":"https://api.github.com/users/fivedoor","html_url":"https://github.com/fivedoor","followers_url":"https://api.github.com/users/fivedoor/followers","following_url":"https://api.github.com/users/fivedoor/following{/other_user}","gists_url":"https://api.github.com/users/fivedoor/gists{/gist_id}","starred_url":"https://api.github.com/users/fivedoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fivedoor/subscriptions","organizations_url":"https://api.github.com/users/fivedoor/orgs","repos_url":"https://api.github.com/users/fivedoor/repos","events_url":"https://api.github.com/users/fivedoor/events{/privacy}","received_events_url":"https://api.github.com/users/fivedoor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-14T16:13:51Z","updated_at":"2016-06-02T16:26:24Z","closed_at":"2016-04-14T21:58:57Z","body":"I've been following the guide to install Zurb foundation but running into a consistent issue.\r\n$ npm install foundation-cli --global\r\nis successful but\r\n:foundation fivedoor$ foundation new\r\nbrings up:\r\n```\r\ng++: error: unrecognized command line option '-stdlib=libc++'\r\nmake: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 1\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/Users/fivedoor/Documents/development/zurb/foundation/test130416-2/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/lib/build.js:276:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Darwin 10.8.0\r\ngyp ERR! command \"/usr/local/bin/node\" \"/Users/fivedoor/Documents/development/zurb/foundation/test130416-2/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\r\ngyp ERR! cwd /Users/fivedoor/Documents/development/zurb/foundation/test130416-2/node_modules/gulp-sass/node_modules/node-sass\r\ngyp ERR! node -v v4.4.2\r\ngyp ERR! node-gyp -v v3.3.1\r\ngyp ERR! not ok \r\nBuild failed\r\n```\r\nI was advised on the node-gyp issue forum that his was not a node-gyp bug but perhaps a libsass issue. I have seen similar errors in other github posts. \r\n\r\nTo be honest, being pretty new to node, I'm sure it's possible I may have been inept in implementing some of the various solutions suggested.\r\n\r\nI have tried quite a few things without any joy:\r\n   - complete uninstall/ reinstall latest node & npm;\r\n   - clean npm cache; install with nvm, brew;\r\n   - updating git to latest version that supports snow leopard;\r\n   - npm --optional install ;\r\n   - installed macports and then updated GCC and G++;\r\n   - deleting .node-gyp folder and reinstall;\r\n   - uninstall and reinstall foundation-cli.\r\n\r\nBeen keeping an expanding troubleshooting log as I go. The most recent stuff at https://github.com/fivedoor/foundation-records/blob/master/my_installation_log_post_reinstall100416\r\n\r\nFailing a silver bullet solution, could someone advise if upgrading to a later OS is likely to help or not? ( I know snow leopard is old but I've clung on to it for stability.) I did get some warnings from brew that \" We (and Apple) do not provide support for OS 10.6\"\r\n\r\nThe frustrating thing is at this stage I'm not trying to do anything more 'advanced' than just install the packages I need to get started.\r\n\r\n   - MACOS X Version 10.6.8\r\n   - npm 3.8.6\r\n   - node v4.4.2\r\n   - Xcode 3.2.6\r\n   - GCC 4.8.5\r\n   - g++ 4.8.5\r\n   - nvm 0.31.0\r\n   - git version 1.8.4.2\r\n   - curl 7.19.7\r\n\r\nthanks\r\n"},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/223345516","html_url":"https://github.com/sass/libsass/issues/1998#issuecomment-223345516","issue_url":"https://api.github.com/repos/sass/libsass/issues/1998","id":223345516,"user":{"login":"smolugu","id":8217755,"avatar_url":"https://avatars.githubusercontent.com/u/8217755?v=3","gravatar_id":"","url":"https://api.github.com/users/smolugu","html_url":"https://github.com/smolugu","followers_url":"https://api.github.com/users/smolugu/followers","following_url":"https://api.github.com/users/smolugu/following{/other_user}","gists_url":"https://api.github.com/users/smolugu/gists{/gist_id}","starred_url":"https://api.github.com/users/smolugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolugu/subscriptions","organizations_url":"https://api.github.com/users/smolugu/orgs","repos_url":"https://api.github.com/users/smolugu/repos","events_url":"https://api.github.com/users/smolugu/events{/privacy}","received_events_url":"https://api.github.com/users/smolugu/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T16:26:24Z","updated_at":"2016-06-02T16:26:24Z","body":"@fivedoor I am going through the exact same problem. trying to switch the compiler to clang. Can you please tell me the steps on how to do it. Thank you!"}}
{"actor":{"display_login":"smolugu"}}