{"id":3551,"date":"2019-04-24T16:19:33","date_gmt":"2019-04-24T07:19:33","guid":{"rendered":"http:\/\/redwing.moo.jp\/cocoa\/?p=3551"},"modified":"2019-05-17T09:55:16","modified_gmt":"2019-05-17T00:55:16","slug":"sass-%e3%83%93%e3%83%ab%e3%83%89%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%81%ae%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/redwing.moo.jp\/cocoa\/archives\/3551","title":{"rendered":"Sass \u30d3\u30eb\u30c9\u74b0\u5883\u69cb\u7bc9\u306e\u30e1\u30e2"},"content":{"rendered":"<p>osx \u3067 Sass \u306e\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u4f5c\u308b\u969b\u306e\u30e1\u30e2\uff0e<\/p>\n<pre>\r\n1. Node.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n2. \u4f5c\u696d\u7528\u30d5\u30a9\u30eb\u30c0\u306e\u4f5c\u6210 (package.json\u306a\u3069)\r\n3. Gulp \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n4. Sass \u74b0\u5883\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n5. gulp \u3067\u30d3\u30eb\u30c9\u3059\u308b\r\n<\/pre>\n<pre lang=\"html\" base=\"1\">\r\n$ sudo npm install gulp -g  \/\/ gulp \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n$ sudo npm install          \/\/ Sass \u74b0\u5883\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n<\/pre>\n<p>\u88dc\u8db3:<br \/>\nAtom \u306b EditorConfig \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u9069\u7528\u3059\u308b\u3068\u30c1\u30fc\u30e0\u3067\u30b3\u30fc\u30c9\u30b9\u30bf\u30a4\u30eb\u3092\u7d71\u4e00\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u3066\u30d3\u30eb\u30c9\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3067\uff0c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5bfe\u51e6\u3057\u305f\uff0e<br \/>\npermission denied, mkdir  \/node_modules\/node-sass\/build&#8217;<\/p>\n<pre lang=\"bash\" base=\"1\">\r\n$ npm config set user 0\r\n$ npm config set unsafe-perm true\r\n<\/pre>\n<p>\u53c2\u8003: <a href=\"https:\/\/qiita.com\/f-a24\/items\/96dbf94e26b0cd82840a\" rel=\"noopener noreferrer\" target=\"_blank\">Ubuntu\u306bnode-sass\u3092\u5165\u308c\u3088\u3046\u3068\u3057\u305f\u3089\u3064\u307e\u3065\u3044\u305f\u8a71<\/a><br \/>\n\u53c2\u8003: <a href=\"https:\/\/github.com\/basara669\/html_css_book\" rel=\"noopener noreferrer\" target=\"_blank\">\u300e\u73fe\u5834\u306e\u30d7\u30ed\u304c\u672c\u6c17\u3067\u6559\u3048\u308b HTML\/CSS\u30c7\u30b6\u30a4\u30f3\u8b1b\u7fa9\u300f\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf<\/a><br \/>\n\u53c2\u8003: <a href=\"http:\/\/book2.scss.jp\" rel=\"noopener noreferrer\" target=\"_blank\">\u300cWeb\u5236\u4f5c\u8005\u306e\u305f\u3081\u306eSass\u306e\u6559\u79d1\u66f8 \u6539\u8a022\u7248 Web\u30c7\u30b6\u30a4\u30f3\u306e\u73fe\u5834\u3067\u5fc5\u9808\u306eCSS\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u300d\u306e\u516c\u5f0f\u30b5\u30dd\u30fc\u30c8\u30b5\u30a4\u30c8<\/a><\/p>\n<a href=\"https:\/\/twitter.com\/redwing1300?ref_src=twsrc%5Etfw\" class=\"twitter-follow-button\" data-size=\"large\" data-show-count=\"false\">Follow @redwing1300<\/a><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><div id=\"redwi-1549777263\" class=\"redwi- redwi-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9652476346722993\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-9652476346722993\" \ndata-ad-slot=\"\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>osx \u3067 Sass \u306e\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u4f5c\u308b\u969b\u306e\u30e1\u30e2\uff0e 1. Node.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 2. \u4f5c\u696d\u7528\u30d5\u30a9\u30eb\u30c0\u306e\u4f5c\u6210 (package.json\u306a\u3069) 3. Gulp \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 4. Sass \u74b0\u5883\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc &hellip; <a href=\"https:\/\/redwing.moo.jp\/cocoa\/archives\/3551\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[248,249,247,251,250],"class_list":["post-3551","post","type-post","status-publish","format-standard","hentry","category-web","tag-css","tag-gulp","tag-html","tag-npm","tag-sass"],"_links":{"self":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/3551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/comments?post=3551"}],"version-history":[{"count":12,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/3551\/revisions"}],"predecessor-version":[{"id":3688,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/3551\/revisions\/3688"}],"wp:attachment":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/media?parent=3551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/categories?post=3551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/tags?post=3551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}