向环境变量添加 ruby PATH 仍然 `grunt sass` 不起作用
Added ruby PATH to enviornment variables still `grunt sass` does not work
好的,我首先这样做了。
>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
我认为这是有道理的,我需要添加 ruby 的路径,所以我做到了。然后我检查了 ruby 的版本,它做了 return 一些事情
>ruby -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32]
这意味着我已经安装了 ruby。现在 g运行t sass 应该工作,但它不工作,我收到同样的旧消息。
这个:
>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
更新
当我 运行 grunt-sass-force
时,我得到关注:
>grunt sass --force
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Used --force, continuing.
'sass' is not recognized as an internal or external command,
operable program or batch file.
Warning: Exited with error code 1 Used --force, continuing.
Done, but with warnings.
您似乎需要安装 sass
和 gem install sass
。没有 gem,您将无法在 ruby 中使用 sass。
Sass
最初是使用 ruby programming language 构建的。 运行 Sass node
构建系统(即 grunt
、gulp
、webpack
)需要 运行 和 ruby
和 Sass
以及连接它们的方法(即 grunt-contrib-sass
、gulp-sass
、sass-loader
)。
Ruby插件叫gems
,安装插件很简单:
gem install sass
另一方面,libsass is a c
implementations of Sass
that do not require ruby
. After installing libsass
, you will need a way to connect libsass
to node
. You can do this with node-sass
。
npm install node-sass
最后,LESS
是 Sass
的竞争对手,它在 node
上运行并且不需要 ruby
或 libsass
。
好的,我首先这样做了。
>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
我认为这是有道理的,我需要添加 ruby 的路径,所以我做到了。然后我检查了 ruby 的版本,它做了 return 一些事情
>ruby -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32]
这意味着我已经安装了 ruby。现在 g运行t sass 应该工作,但它不工作,我收到同样的旧消息。 这个:
>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
更新
当我 运行 grunt-sass-force
时,我得到关注:
>grunt sass --force
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Used --force, continuing.
'sass' is not recognized as an internal or external command,
operable program or batch file.
Warning: Exited with error code 1 Used --force, continuing.
Done, but with warnings.
您似乎需要安装 sass
和 gem install sass
。没有 gem,您将无法在 ruby 中使用 sass。
Sass
最初是使用 ruby programming language 构建的。 运行 Sass node
构建系统(即 grunt
、gulp
、webpack
)需要 运行 和 ruby
和 Sass
以及连接它们的方法(即 grunt-contrib-sass
、gulp-sass
、sass-loader
)。
Ruby插件叫gems
,安装插件很简单:
gem install sass
另一方面,libsass is a c
implementations of Sass
that do not require ruby
. After installing libsass
, you will need a way to connect libsass
to node
. You can do this with node-sass
。
npm install node-sass
最后,LESS
是 Sass
的竞争对手,它在 node
上运行并且不需要 ruby
或 libsass
。