I\'ve installed ruby and the sass gem on a Win 7 Enterprise box. I\'ve had issues throughout the process, and had to download the gems and install them from local to avoid other
If you using Windows 10 v1607 (latest update as March 2017)
, you need to follow following steps:
System
Advanced System Settings
(left hand column)Environment variables
buttonPath
(or PATH
), then click on Edit
buttonNew
buttonC:\Ruby22-x64\bin\
(its must be path to ruby's bin folder)OK
, twiceCommand-Prompt
, now sass
is ready to watch and compile your sass files.Yes, putting the path to my ruby bin did indeed solve this.
My Computer --> right click, Properties --> Advanced system settings (left hand column) --> Environment variables --> find Path in the bottom list, highlight and edit --> include ;c:\path-to-ruby\bin at the end --> OK back out through the windows.
Thanks!
After installing sass with NPM you got this:
npm install -g sass
file:///C:/Users/yourName/AppData/Roaming/npm/sass -> C:/Users/Administrador/AppData/Roaming/npm/node_modules/sass/sass.js
You can create the path. Go to environment variables - > system variables -> path -> Edith , and include file:///C:/Users/yourName/AppData/Roaming/npm/sass. Then, Accept everything. and it's done.
In order to run commands without specifying full path, you need to have the path to the program in you PATH
variable.
So if your program is located in C:\Programs\rubygems\gem\sass
you'll need to add C:\Programs\rubygems\gem\
to PATH
.
The process of adding a folder to PATH
for the Windows command line prompt is described here.
For Windows Powershell, please check Setting Windows PowerShell path variable here on SO.