How to install dotless on local pc from command line.
First I install Ruby, then put in console "gem install nu", then "nu install dotless".
The installation tells me for all files: "required"
Download and install Ruby 1.9.3
In command line put: gem install nu
In project folder put: nu install dotless
In project folder put: dotless less\style.less css\style.css (this item only one time, when you create a progect; you must keep your .less in folder less and .css in folder css;)
In project folder put: dotless less\style.less --watch css\style.css
When you finish coding in command line press "Enter" for stop watching
Related
enter image description here
Here is a screen shot of the commands.
process_helper is provided by a gem package named process_helper. It is very likely, that your package will contain a file Gemfile with a description of all the dependencies you will need - and you can install all of them using a command bundle install. Individually you can install packages by using eg. gem install process_helper for process_helper.
I have installed a vcpkg package with vcpkg install shogun:x64-windows. The build fails and I need to change a file to fix it.How can I rebuild the package without the install option, that overwrites my changes?I cannot find any VC project in the vcpkg\buildtrees\shogun\x64-windows-<configuration>\src\shogun folder.
You should:
delete buildtrees directory
Execute command "vcpkg remove shogun:x64-windows"
If you need to change shogun solution before install you should write a .patch file and copy to this path("(install_path)\vcpkg\ports\shogun")
Add your patch file to "(install_path)\vcpkg\ports\shogun\portfile.cmake"
Find this line "set(ABSEIL_PATCHES" and add your patch file name in next line
Then "vcpkg install shogun:x64-windows"
I'm am using rmarkdown to generate a word output and need pandoc to do so. Unfortunately I do not have administrator access on my work computer so I can't run the installer or use the install.pandoc() option.
I have tried downloading both the .zip and .tar.gz files from the github site and tried to install them manually using the "install" tab in RStudio, but get the error:
Warning in install.packages :
cannot open compressed file 'pandoc-2.2.1-windows-x86/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
Here states "If you prefer not to use the msi installer, we also provide a zip file that contains pandoc’s binaries and documentation. Simply unzip this file and move the binaries to a directory of your choice."
maybe I don't know what they mean by "move the binaries to a directory of your choice." - When I unzip the files, I still cannot access the package.
Side note - I have defined .libpaths() to allow me to install other packages, but i cannot get pandoc to work.
Any suggestions on how to do this?
Pandoc is a terminal application and does not require R-Studio to install it unziping the .tar.gz file with
linux: tar -xzvf filename.tar.gz
for windows the binary is the program pandoc itself that is unzipped from the zip file
simply unzip the file and pandoc should already be installed in the unzipped folder
after unzipping you might want to move pandoc.exe (for windows) int the directory where the project is located so that it is recognized
So there are two steps in this process for me to get it to work.
1: Install Pandoc
First download the MSI from https://github.com/jgm/pandoc/releases/
If you have trouble installing the MSI by right clicking on it, try creating a batch file with the contents:
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %1"
Then drag and drop the MSI on to this batch file and it will install without asking for any admin privileges.
2:
You'll need to tell the script to find Pandoc if its not running in RStudio already:
if(Sys.getenv("RSTUDIO") != "1"){rmarkdown::find_pandoc(dir = Sys.getenv("pandoc_path"))}
For me Sys.getenv("pandoc_path") = C:/Users/[username]/AppData/Local/Pandoc
I cannot install Sass to my machine although I had downloaded ruby and printed on cmd :
cd C:/ruby22
then:
gem install sass
but I get as result:
'gem' is not recognized as an internal command, operable program or batch file
how to install it please?
You can install Sass on Windows by downloading the package for your operating system from GitHub select latest release
extract the downloaded zip file
Now note download the extracted zip file path. For example D:\MyUserName\dart-sass
Set system environment variable. Step depends which version of
Windows you're using:
If you're using Windows 8 or 10, press the Windows key, then search
for and select "System (Control Panel)".
If you're using Windows 7, right click the "Computer" icon on the
desktop and click "Properties". Click "Advanced system settings".
Click "Environment Variables".
Under "System Variables", find the PATH variable, select it, and
click "Edit". If there is no PATH variable, click "New".
Add your directory to the beginning of the variable value followed
by ; (a semicolon). For example, if the value was
C:\Windows\System32, change it to
C:\Users\Me\bin;C:\Windows\System32.
Click "OK".
That's all—there are no external dependencies and nothing else you need to install.
now open command prompt
run sass --version
to be sure it installed correctly.
When you install Sass on the command line, you'll be able to run the sass executable to compile .sass and .scss files to .css files. For example:
sass --watch input.scss output.css
Once it's all set up, Sass Basics.
how i am converting .scss to .css
i have created a windows batch file in my project/content/scss folder(where all my scss files are) with below commands.
cd.. (When you need to go one folder up, use the "cd.." command.)
sass --watch scss\:scss\ (You can also watch individual files or
directories with the --watch flag.)
saved it as
watch scss.bat
now whenever i am working on my sass file i run the "watch scss.bat"
the above command execute and watch my all my .scss files and update .css file for the same:)
Install ruby, see: https://github.com/oneclick/rubyinstaller/wiki
Open a command prompt, click Start, click Run, type cmd, and then click OK.
Run gem install sass
Possible related to your issue: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file
This is for Windows
First step is to download ruby, install it, then add it to your executable path.
Now go to your folder where ruby was installed and check if it was installed with ruby -v command.
Then, open the folder where you have installed ruby and install sass using gem install sass.
That's it!! You are good to go!! If you still have doubts, run sass -v and it will give you a version.
For Mac
Just run gem install sass as ruby is preinstalled on Mac.
Step 1: https://rubyinstaller.org/ using CMD [gem install sass]
Step 2: http://compass-style.org/install/ using CMD
[gem update --system] [gem install compass]
for more details https://github.com/iz-syed/base_path/blob/master/README.md
Got a bit of a pickle of a question - I'm sure fairly straight forward if I just knew the correct way to ask Google.
I've been getting the hang of LESS lately and originally installed it globally through NPM, i.e. npm install lessc -g to use with an initializer project - running lessc less/style.less style.css like a champ before I deploy it off my local computer.
Loving it - working great - decide to use LESS with a separate rails project - add the gem 'less-rails' to the project - bundle install - get it rolling and working smoothly.
Unfortunately now that I've gone back to my initializer project - lessc less/style.less style.css throws an error message that references RVM and Bulder.
Eventually I found a workaround by installing LESSC locally with npm install lessc -g and running node_modules/less/bin/lessc less/style.less style.css but this is a pain.
So: How do I get LESSC back to working exclusively with Node and ignoring all that RVM / Ruby / Bundler crap?
Thanks!
Ok - I was able to do this by adding a variable to my .bash_profile file in my user directory that pointed at the global node installation of LESS.
Basically adding
export lessc=~/.npm/less/1.3.0/package/bin/lessc
to .bash_profile or .profile or .bashrc in your user directory. And running source ~/.bash_profile.