質問内容
背景
yarn で package.json に記載した script を実行したらエラーがでました。エラーには、「node sass がお使いの環境(Mac OS X)でサポートされていない」とあります。github(※1)を参照するように書いてありました。
(※1)参照するgithubのページ
https://github.com/sass/node-sass/releases/tag/v4.10.0
わからないこと
上記のgithubのページを見たのですが、サポート対象か否かがわかりませんでした(github に不慣れです)。
具体的には、参照先の表「Supported Environments」の内容が、実行環境に適しているのかを知りたいです。
環境
- Mac OS High Sierra 10.13.6
- yarn 1.16.0
- node-sass 4.12.0(Wrapper)[JavaScript]
- libsass 3.5.4(Sass Compiler)[C/C++]
補足情報
ターミナルで実行したコマンド
terminal
1$yarn run build-css
エラーメッセージ
error
1Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72) 2For more information on which environments are supported please see: 3https://github.com/sass/node-sass/releases/tag/v4.10.0
package.json の内容
実行したいのは、下記の build-css です。
json
1{ 2 "name": "html_advance", 3 "version": "1.0.0", 4 "description": "", 5 "main": "index.js", 6 "scripts": { 7 "build-css": "node-sass --include-path scss scss/style.scss css/style.css", 8 "watch-css": "nodemon -e scss -x \"npm run build-css\"" 9 }, 10 "author": "", 11 "license": "ISC", 12 "devDependencies": { 13 "node-sass": "^4.9.4", 14 "nodemon": "^1.18.4" 15 } 16}
回答1件
あなたの回答
tips
プレビュー